telegram-bot-api icon indicating copy to clipboard operation
telegram-bot-api copied to clipboard

Add custom init func and files endpoint support

Open nikchis opened this issue 4 years ago • 1 comments

Added functionality to provide setting custom API and File endpoints

  • func NewBotAPICustom
  • func SetFileEndpoint
  • field BotAPI.fileEndpoint edited func file.Link

nikchis avatar Sep 06 '19 04:09 nikchis

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.

Syfaro avatar Jul 21 '20 08:07 Syfaro