aboutsummaryrefslogtreecommitdiff
path: root/telegram
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2023-08-01 04:37:05 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2023-08-01 04:37:05 +0300
commita595d9db0af3e5c08abf4df32de61e653af0711c (patch)
treeae96cad96b761012689e9514351722959710cbe0 /telegram
parentef831fc9725601a94149ce94c3fb686afc77e0a5 (diff)
Version 1.7.0v1.7.0
Diffstat (limited to 'telegram')
-rw-r--r--telegram/commands.go4
-rw-r--r--telegram/utils_test.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/telegram/commands.go b/telegram/commands.go
index 3828ec2..e164ce1 100644
--- a/telegram/commands.go
+++ b/telegram/commands.go
@@ -942,8 +942,8 @@ func (c *Client) ProcessChatCommand(chatID int64, cmdline string) (string, bool)
}
}
_, err = c.client.SetChatMessageAutoDeleteTime(&client.SetChatMessageAutoDeleteTimeRequest{
- ChatId: chatID,
- MessageAutoDeleteTime: int32(ttl),
+ ChatId: chatID,
+ MessageAutoDeleteTime: int32(ttl),
})
if err != nil {
diff --git a/telegram/utils_test.go b/telegram/utils_test.go
index 18be215..e54ddb5 100644
--- a/telegram/utils_test.go
+++ b/telegram/utils_test.go
@@ -406,7 +406,7 @@ func TestMessageTtl3(t *testing.T) {
func TestMessageTtl4(t *testing.T) {
ttl := client.Message{
Content: &client.MessageChatSetMessageAutoDeleteTime{
- FromUserId: 3,
+ FromUserId: 3,
MessageAutoDeleteTime: 3,
},
}