Closed amirhosss closed 1 year ago
Hi, thanks for raising an issue!
This is a known limitation of the library, caused by go's static type system. It's not possible to have a method which accepts both a string and an int for the same parameter.
However, this limitation was found to be quite benign, as it is safer to write your bots using fixed chatids rather than usernames, which could change at any point.
If you really want to use a string, I recommend you use the bot.Request method to craft your own request. The example you've provided just needs a few tweaks to use strings instead of ints
Thanks
Hi, the official Telegram docs accept strings, but in this implementation, we can't pass a string. https://core.telegram.org/bots/api#getchat