Package telego provides one-to-one Telegram Bot API method & types. Telego features all methods and types described in official Telegram documentation (https://core.telegram.org/bots/api). It achieves this by generating methods and types from docs (generation is in internal/generator package). The main goal was and is to create a one-to-one library, so that if you know how Telegram bots work, you will immediately know how to implement that in Go using Telego. All types named and contain the same information as documented by Telegram, for methods it's exactly the same. However, some minor differences may be present (like use of interfaces or combined types). Also, all generated codes have the same description as in Telegram docs, so there is actually no need to go to docs (but still, be careful as it is not a full copy of docs due to text only limitation). Telego was also created to simplify work with a Telegram API, so some additional methods for more convenient usage located in long_polling.go and webhook.go and telegoutil package. When you are working with things like chat ID which can be an integer or string Telego provides combined types: or input files that can be URL, file ID or actual file data: you will specify only one of the fields and Telego will figure out what to do with that. For more flexibility, file data for InputFile are provided via simple interface: os.File already implements this interface, so you can use it directly. Most of the examples can be seen in examples folder. Simple echo bot: This bot will send the same messages as you sent to him.
Package tgbotapi has functions and types used for interacting with the Telegram Bot API.
Package tgbotapi has functions and types used for interacting with the Telegram Bot API.
Package tgbotapi has functions and types used for interacting with the Telegram Bot API.
Package tg contains a low level API to interact with Telegram Bot API.
Package tgbotapi has functions and types used for interacting with the Telegram Bot API.
Package tgbotapi has functions and types used for interacting with the Telegram Bot API.
Package tgbotapi has functions and types used for interacting with the Telegram Bot API.
Package tgbotapi has functions and types used for interacting with the Telegram Bot API.
Package tgbotapi has functions and types used for interacting with the Telegram Bot API.
Package tgbotapi has functions and types used for interacting with the Telegram Bot API.
Package tgbotapi has functions and types used for interacting with the Telegram Bot API.
Package botapi implements telegram-bot-api in go.
Package tgbotapi has functions and types used for interacting with the Telegram Bot API.
Package tgbotapi has functions and types used for interacting with the Telegram Bot API.
Package tgbotapi has functions and types used for interacting with the Telegram Bot API.
Package tgbotapi has functions and types used for interacting with the Telegram Bot API.
Package tgbotapi has functions and types used for interacting with the Telegram Bot API.
Package tgbotapi has functions and types used for interacting with the Telegram Bot API.
Package tgbotapi has functions and types used for interacting with the Telegram Bot API.