aboutsummaryrefslogtreecommitdiff
path: root/telegram/utils_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'telegram/utils_test.go')
-rw-r--r--telegram/utils_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/telegram/utils_test.go b/telegram/utils_test.go
index fa9c107..a0939cd 100644
--- a/telegram/utils_test.go
+++ b/telegram/utils_test.go
@@ -567,7 +567,7 @@ func TestMessageToPrefix7(t *testing.T) {
func GetSenderIdEmpty(t *testing.T) {
message := client.Message{}
- senderId := (&Client{}).getSenderId(&message)
+ senderId := (&Client{}).getMessageSenderId(&message)
if senderId != 0 {
t.Errorf("Wrong sender id: %v", senderId)
}
@@ -579,7 +579,7 @@ func GetSenderIdUser(t *testing.T) {
UserId: 42,
},
}
- senderId := (&Client{}).getSenderId(&message)
+ senderId := (&Client{}).getMessageSenderId(&message)
if senderId != 42 {
t.Errorf("Wrong sender id: %v", senderId)
}
@@ -591,7 +591,7 @@ func GetSenderIdChat(t *testing.T) {
ChatId: -42,
},
}
- senderId := (&Client{}).getSenderId(&message)
+ senderId := (&Client{}).getMessageSenderId(&message)
if senderId != -42 {
t.Errorf("Wrong sender id: %v", senderId)
}