Questions tagged [telegram-bot]

The Bot API is an HTTP-based interface created for developers keen on building bots for Telegram which is an instant-messaging app with documented API. Use this tag if you're writing a telegram bot and have a specific question regarding the Bot API.

Available methods

  • getMe
  • sendMessage
  • forwardMessage
  • sendPhoto
  • sendAudio
  • sendDocument
  • sendSticker
  • sendVideo
  • sendVideoNote
  • sendVoice
  • sendLocation
  • sendVenue
  • sendContact
  • sendChatAction
  • getUserProfilePhotos
  • getUpdates
  • setWebhook
  • removeWebhook
  • getFile

Links:

4905 questions
1
vote
1 answer

how to allow java telegram bot wait user reply?

Good day, all. Can I allow my java telegram bot to wait for user's reply and continue to ask another question? if(msg.contains("/register")) { SendMessage message = SendMessage .builder() …
kyi
  • 46
  • 1
  • 6
1
vote
0 answers

Error checking SSLError the certificate through a proxy, telegram bot, corporate network

I work through a corporate network, there is a need to write a bot telegram, I tried various libraries (`` telebot, telepot, telegram, airogram ''). Everywhere I come across the problem of access through a corporate proxy. Now I stopped at telebot,…
Vadim
  • 11
  • 1
1
vote
1 answer

Telegram Bot Use Button in Query

I am creating my first ever Telegram Bot on Python. For now, I managed to get an inline menu, but I cannot understand how to get the information from the last button (aka the text on the button that was pushed) to use it in the query for google doc.…
1
vote
2 answers

InlineKeyboardMarkup Telegram bot (pyTelegramBotAPI)

I am making a bot on pyTelegramBotAPI, I need to generate a list of buttons and write it into the keyboard (So that there are 5 buttons in a row). How should I do it? I have a code: def start(message): markup = types.InlineKeyboardMarkup() …
Psoriaz
  • 35
  • 4
1
vote
2 answers

How to open URL's using telegraf JS markup inline keyboard in telegram in app browser?

Code Snippet: ctx.reply( `Hi! ${ctx.from.first_name} \n \n Shall we start? `, Markup.inlineKeyboard( [ Markup.button.url( "Covid-19 IN", "https://www.covid19india.org/" ), …
1
vote
1 answer

How to make telegram bot reply with a photo?

I have this telegram bot, and i want it to reply to a specific message with a specific photo, to be something like this from telegram.ext import Updater, CommandHandler, MessageHandler, Filters def text(update, context): text_received =…
A.Rahman Mahmoud
  • 328
  • 1
  • 3
  • 17
1
vote
1 answer

How to manage telegram group permissions with python telegram bot

I am making a telegram bot, so how to manage group permissions with bot permissions like send message, send embeds etc... I am trying for last 5 days please help me use this as a reference here
1
vote
2 answers

How to run separate instances of a Python Telegram Bot?

Currently, I have created a Python bot with buttons that can be pressed to add orders to a list of orders, as shown below: Sample of the Telebot's Buttons and the List My bot is in separate chat groups, Chat 1 and Chat 2. When I press a button to…
1
vote
1 answer

Telegram bot get responses

How can I make my bot receives responses without using force_reply? something like botFather does? Let say I've sent message to user like this: bot.sendMessage(chatId, 'What is your name?', { parse_mode: 'HTML' }); Now how do I get user response?
mafortis
  • 6,750
  • 23
  • 130
  • 288
1
vote
2 answers

Telegram Bot: Forwarding Messages from Private Group

Is there any way using Python / JS to forward messages which I, as a member, do receive in a private read-only group? I'm trying to set it up using python-telegram-bot but it seems I gotta add the bot to the group to have it interact with the…
tim
  • 9,896
  • 20
  • 81
  • 137
1
vote
1 answer

Python Telegram Bot works only for me, not for other users

I am building Telegram Bot using Django, I've already deployed it to Heroku, but without Webhooks. For testing I am using polling, and I can't access bot from another telegram account. I have couple of friends who work with me on that project, and I…
XRSIL
  • 23
  • 6
1
vote
1 answer

How to fix KeyError in python --> KeyError: 'message'?

This error usually should not appear, but recently when I run this, this error appears, and I have no clue how I will fix it. Please if Anyone can help me to fix this error on this code below: import requests import json from time import…
1
vote
2 answers

How to add a description of your teams to the list using aiogram

the same list When you type "/" in the telegram bot, a menu appears with possible commands and their descriptions. I know this is done with types.BotCommand (), however I cannot figure out how to apply it correctly.
Beeming
  • 13
  • 3
1
vote
0 answers

Conflict: terminated by setWebhook request Telegraf (Telegram Bot) and MenuBuilder (Node js)

briefly, so I built a telegram bot on node js with the Telegraf library. My bot uses menu builder provided by the telegram app, but if a new user enters my bot the menu wont appear until I enable the menu builder webhook. And when I enable it , my…
1
vote
1 answer

Deploy Java Telegram bot on Heroku: Could not find or load main class

I'm writing a telegram bot by this lib: https://github.com/rubenlagus/TelegramBots . The bot can run successfully on my local machine but cannot run on Heroku. The Error Message is "Counld not find or load main class." I have read a lot of similar…
Amane
  • 26
  • 5
1 2 3
99
100