diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2023-11-16 16:05:23 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2023-11-16 16:05:23 +0300 |
commit | dcb802358b8f7d8a72da04cce71b2dcc0f6a2fbc (patch) | |
tree | e91ded403ca90db70bc07c24acc07d110d588738 /telegram/utils_test.go | |
parent | 6bd837911431ef68d23de1bcbb75893edd39a32b (diff) |
Fix tests
Diffstat (limited to 'telegram/utils_test.go')
-rw-r--r-- | telegram/utils_test.go | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/telegram/utils_test.go b/telegram/utils_test.go index e54ddb5..47e30dc 100644 --- a/telegram/utils_test.go +++ b/telegram/utils_test.go @@ -431,7 +431,7 @@ func TestMessageToPrefix1(t *testing.T) { Id: 42, IsOutgoing: true, ForwardInfo: &client.MessageForwardInfo{ - Origin: &client.MessageForwardOriginHiddenUser{ + Origin: &client.MessageOriginHiddenUser{ SenderName: "ziz", }, }, @@ -452,7 +452,7 @@ func TestMessageToPrefix2(t *testing.T) { message := client.Message{ Id: 56, ForwardInfo: &client.MessageForwardInfo{ - Origin: &client.MessageForwardOriginChannel{ + Origin: &client.MessageOriginChannel{ AuthorSignature: "zaz", }, }, @@ -473,7 +473,7 @@ func TestMessageToPrefix3(t *testing.T) { message := client.Message{ Id: 56, ForwardInfo: &client.MessageForwardInfo{ - Origin: &client.MessageForwardOriginChannel{ + Origin: &client.MessageOriginChannel{ AuthorSignature: "zuz", }, }, @@ -511,7 +511,7 @@ func TestMessageToPrefix5(t *testing.T) { message := client.Message{ Id: 560, ForwardInfo: &client.MessageForwardInfo{ - Origin: &client.MessageForwardOriginChat{ + Origin: &client.MessageOriginChat{ AuthorSignature: "zyz", }, }, @@ -530,9 +530,11 @@ func TestMessageToPrefix5(t *testing.T) { func TestMessageToPrefix6(t *testing.T) { message := client.Message{ - Id: 23, - IsOutgoing: true, - ReplyToMessageId: 42, + Id: 23, + IsOutgoing: true, + ReplyTo: &client.MessageReplyToMessage{ + MessageId: 42, + }, } reply := client.Message{ Id: 42, |