Skip to content

Commit

Permalink
Remove int64 convert
Browse files Browse the repository at this point in the history
  • Loading branch information
c0re100 committed Dec 3, 2021
1 parent 2fc9d00 commit 3c05c80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

func GetSenderId(sender tdlib.MessageSender) int64 {
if sender.GetMessageSenderEnum() == "messageSenderUser" {
return int64(sender.(*tdlib.MessageSenderUser).UserId)
return sender.(*tdlib.MessageSenderUser).UserId
} else {
return sender.(*tdlib.MessageSenderChat).ChatId
}
Expand Down

0 comments on commit 3c05c80

Please sign in to comment.