telegram-bot-api
telegram-bot-api copied to clipboard
Add custom init func and files endpoint support
Added functionality to provide setting custom API and File endpoints
- func NewBotAPICustom
- func SetFileEndpoint
- field BotAPI.fileEndpoint edited func file.Link
Thanks for the PR! The Link
change is weird, but I'm not sure what a better approach would be. Perhaps it'd be worth adding a new method on BotAPI
instead.
However instead of adding more constructors, this should probably be updated after #206 is merged.