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
0 answers

How do I make a bold text in a message sent via answerQuery? telebot nodejs

const opt = { nextOffset: 64, cacheTime: 200, }; const answers = bot.answerList(msg.id, opt); answers.addArticle({ id: '2026', title: '2026', message_text: 'Year 2026', …
Dimon
  • 13
  • 3
1
vote
0 answers

How to mute notifications of a telegram user with telethon?

I was trying how to mute a telegram user with telethon. I tried searching in the official documentation of telethon. I also tried searching in google I found nothing. Please help me. How to mute a telegram user with telethon.
Lalan Kumar
  • 107
  • 6
1
vote
0 answers

How can I fix/link/connect Telegram bot inline button to cell in Google Sheet?

So I have Telegram Bot that works with Google App Script. My bot sends the last row that was edited in my Sheet in any List ( more then 10 list). And the message from bot goes with inline button "Accepted" - and I'm receiving an array with call_back…
1
vote
1 answer

Telethon cannot forward message even "sensitive_enabled" is disabled

I'm using Telethon to forward messages from A group to B channel. But some of the documents were not able to be forwarded with the following log: restriction_reason=[ RestrictionReason(platform='ios', reason='porn', text="This message…
user2131907
  • 342
  • 1
  • 6
  • 14
1
vote
2 answers

I need send copied text in telegram bot using selenium-chromedriver

element = browser.find_element_by_xpath("//div[@class='span12']") # send the copied text back context.bot.send_message(chat_id=update.message.chat_id, text=element) #come error element =…
1
vote
1 answer

How to divide the result into several messages?

For example, the result of a query to the database involves the output of 50 records. These records are issued in a single chat message, which is difficult to analyze. How to divide the result into several messages with 3 records in…
anonym
  • 31
  • 6
1
vote
1 answer

Telegraf: After restricting permissions, my bot won't grant posting abilities back

I'm struggling to understand where I've gone wrong here so I'm looking for some extra eyes. I'm using Telegraf to make a Telegram bot in NodeJS. When a new user logs in, it should restrict them from being able to post anything until they answer a…
boydster
  • 31
  • 5
1
vote
0 answers

Telegram Telethon Working With Inline Bots

I am trying to query an inline telegram bot in telethon, along the guidelines of the Docs. I'm having trouble being able to select one of the outputs on the menu from the bot. For simplicity, it is an inline bot in a channel about colors and if you…
Exosylver
  • 135
  • 1
  • 14
1
vote
1 answer

/setprivacy is not working with my Telegram bot

In the process of adding Telegram bot to a group, the /setprivacy is set to Enable, so that whenever the user mention the bot using the username of bot or '/', the bot will get the message. Despite of this enable setting, the bot still receives the…
Ashik Mydeen
  • 104
  • 7
1
vote
1 answer

Make a phone call to a user without using a third party url - telegram chatbot

I have a telegram chat bot implemented in java and jhipster with this API: rubenlagus/TelegramBots I want to add a functionality: Make a phone call to a user without using callMeBot or similar. That is, making the call from code without using a…
Federremu
  • 84
  • 1
  • 7
1
vote
0 answers

The event.respond() Telethon function finds that my python string is not in UTF-8

I'm writing a little python script using the Telethon library. One of the functions that I'm writing return the word usage frequency of a specific user. The word usage frequency is contained in a String object that is returned to the user in…
beepmep
  • 11
  • 4
1
vote
1 answer

Is there a way to control appearance of Bot Menu Button?

The somewhat-new feature of bot menu button now dissapeared from my and other bots I used from my macOS client, presumably after latest mac Telegram update, version 8.1 (221723) Stable. Looking at some screenshots I did, menu button was there as of…
vladli
  • 1,454
  • 2
  • 16
  • 40
1
vote
3 answers

How to auto remove/kick members from telegram channel or group?

I have telegram channel/group where i add members manually and i remove/kick users manually after one/two/three month. Is there any way to do this task automatically, I mean can we remove/kick user from channel/group automatically or by…
VikaS GuttE
  • 1,636
  • 2
  • 14
  • 38
1
vote
1 answer

how to store user {name} if the user doesn't have {username} telegram bot python

how to store user {name} if the user doesn't have {username} telegram bot python? i'am using python 3.8 and telegram-python-bot library! i tried this but its doesn't work >>> user = ({update.effective_user.username}) name =…
sMx_7d
  • 37
  • 6
1
vote
1 answer

telegram price bot - function loop

I am trying to make a telegram price bot but I am running into an issue. works fine, but I can't set the bot to send me the updated price every 5 minutes (or more). Any solution? Thanks! my code import telegram from telegram.ext import Updater from…
Pie Mark
  • 27
  • 2