diff options
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, |