The Wayback Machine - https://web.archive.org/web/20201114040741/https://github.com/topics/telegram-bot
Skip to content
#

telegram-bot

telegram logo

Telegram is a non-profit, cloud-based instant messaging service. It offers open source clients for a multitude of operating systems and powerful APIs that allow developers to create their own clients and chat bots.

Here are 5,400 public repositories matching this topic...

Killian-A
Killian-A commented Nov 12, 2020

Describe your environment

Doesn't matter

Describe the enhancement

I think it would be cool to have the ability to set custom commands to the bot's reply keyboard , for example i don't care about the /help one but i'd like to put the /forcesell all instead, so i can use it in one click.
Maybe it could be done on the config file in the Telegram section , by supplying an array of cu

raid-7
raid-7 commented Jul 7, 2020

In terms of Telegram bot API the maximum polling time of getUpdates is referred to as timeout. That is if there are pending updates, Telegram will return them immediately. In the other case, it will wait for timeout seconds and then answer with an empty list.

The telegram-bot Rust library has its own notion of timeouts. getUpdates' timeout [i

LazarenkoA
LazarenkoA commented Oct 25, 2020

Please help with an example of sending a photo to an arbitrary chat. Here's what I found myself

client.MessagesSendMedia(&telegram.MessagesSendMediaParams{
	Silent:       false,
	Background:   false,
	ClearDraft:   false,
	Peer:         &telegram.InputPeerUser{ // user data
		UserId:     2121212,
		AccessHash: 212121211221,
	},
	ReplyToMsgId: 0,
	Media:        ???, 
	Message:    

Created by Telegram Messenger LLP

Released August 2013

Website
telegram.org
Wikipedia
Wikipedia
You can’t perform that action at this time.