From a595d9db0af3e5c08abf4df32de61e653af0711c Mon Sep 17 00:00:00 2001 From: Bohdan Horbeshko Date: Mon, 31 Jul 2023 21:37:05 -0400 Subject: [PATCH] Version 1.7.0 --- telegabber.go | 2 +- telegram/commands.go | 4 ++-- telegram/utils_test.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/telegabber.go b/telegabber.go index 78b893b..5bb69d6 100644 --- a/telegabber.go +++ b/telegabber.go @@ -15,7 +15,7 @@ import ( goxmpp "gosrc.io/xmpp" ) -var version string = "1.6.1-dev" +var version string = "1.7.0" var commit string var sm *goxmpp.StreamManager 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, }, }