telegram-bot

Delete Message from Telegram Group

可紊 提交于 2019-12-06 10:19:08
问题 I'm working application that integrates with telegram and I had issue I create group and have admin on it and bot I add bot that I can get messages update from the group chat problem is when I delete message from group chat by admin is should not be showing here https://api.telegram.org/bot123456789token/getUpdates/ but I get all message history even I delete them any idea of what's is wrong? 来源: https://stackoverflow.com/questions/44770316/delete-message-from-telegram-group

Chat API to add and remove members automatically [closed]

你离开我真会死。 提交于 2019-12-06 05:12:06
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 12 months ago . I'm working with a guy who uses telegram app to send bet tips on football matches. He wants the group to be private, right now he is adding and removing all members manually. The group is growing and now has more than 300 members which makes his job harder, what he wants is an automatic way of adding and removing members from the group . Is there any api that let me do this? I'm open to change to another chat

Telegram bot to wait for user reply

梦想与她 提交于 2019-12-06 04:52:04
The code below is for a Telegram Bot which basically takes a person username and password and verifies it to provide his average expenditures. The problem as we see is the bot waits for the user to send his username and password for 10 sec either waste of time (or) not sufficient time was given. How could I program such that the bot waits for user message and then executes the next lines ( wait till the trigger ) def highest(intent,chatid,text): seq=["What is your Username ?","Password?"] send_message(seq[0],chatid) time.sleep(6) name,chatid = reply_function() print name send_message(seq[1]

Telegram bot on OpenSSL

你。 提交于 2019-12-06 04:28:31
I have problem with https://core.telegram.org/bots . Get token from BotFather. Create self-signed ssl sertificate ( https://core.telegram.org/bots/self-signed ): openssl req -newkey rsa:2048 -sha256 -nodes -keyout YOURPRIVATE.key -x509 -days 365 -out YOURPUBLIC.pem -subj "/C=US/ST=New York/L=Brooklyn/O=Example Brooklyn Company/CN=YOURDOMAIN.EXAMPLE" Run server: openssl s_server -accept 88 -key YOURPRIVATE.key -cert YOURPUBLIC.pem Send hook: curl -F "url= https://URL:88/bot " -F "certificate=@YOURPUBLIC.pem" https://api.telegram.org/botTOKEN/setWebhook Answer: {"ok":true,"result":true,

Telegram Bot API: getChatMember throws USER_ID_INVALID for valid user

£可爱£侵袭症+ 提交于 2019-12-06 03:01:18
问题 I'm trying to find out if a specific User is present in a supergroup, in order to keep track of those who left. For that, I'm calling the Bot API method getChatMember for each User and checking if their status is either Left or Kicked . However, I noticed that (recently?) I'm getting USER_ID_INVALID errors for many valid users that are either in the supergroup or have been in the past and then left. I also confirmed that those accounts are still active on Telegram. Here's the HTTP request I'm

How to make phone number a link in Telegram Bot?

橙三吉。 提交于 2019-12-06 02:12:25
问题 Our team tries to create the Telegram Bot and it is essential for us to make phone number in the long messages clickable. Sometimes we have to send our users messages with a lot of information and few phone numbers, so it is hard to get the phone, because telegram allows to copy only the whole message. If we send the short message without any markdown the telegram mobile app will highlight it: await bot.send_message(chat_id, "Example text with a phone +79991234567") If we use Markdown

How to join my Telegram Bot to PUBLIC channel

送分小仙女□ 提交于 2019-12-05 21:43:12
问题 My question is: how to join my telegram bot to a telegram public channel that I am not administrator of it, and without asking the channel's admin to add my bot to the channel? maybe the chatId of channel or thru link of channel? Thank you in advance :) edit------ I have heard that some people claim to do this join their bot to channels, and scrape data. So if Telegram does not allow it, how can they do it? can you think of any work around? Appreciate your time? 回答1: Till today, only the

Create new group using telegram bot API

China☆狼群 提交于 2019-12-05 09:54:07
How can I create new groups using a bot in Telegram? As far as I know a bot cannot do this itself, so is it possible to implement a bot as a regular user ? How? Update : This is what I want http://t.me/polyglossia As I know this is impossible according to the latest telegram bot api and its documentation that can be find here . Bots cannot create channels, groups and super groups they can only be added to groups or channel as administrator manually by human users. I myself don't use unofficial telegram apps and I have to say that they don't use the telegram bot API they use the Telegram API

How many telegram bots can I create?

我与影子孤独终老i 提交于 2019-12-05 07:27:42
tldr: Is there a limit to the number of bots a user can create on telegram? usecase: I'm considering "selling custom bots" to people as a service, and would like to avoid having my clients handle technical stuff like api keys or "talking to botfather". So I would create their bot on my account, but this isn't really doable if I'm limited to a certain number of bots. I didn't find anything in their docs or their faq, but maybe someone here did run into a limit. Thanks! Sean You can only create 20 bots per Telegram account. Although it‘s not written in Bot FAQ , but proved by many bot developers

How to send a message to the user who logged in through the telegram in website?

落花浮王杯 提交于 2019-12-05 07:25:13
问题 How to send a message to the user who logged in through the telegram in website? Telegram Login for Websites Telegram bots are a powerful communication tool, but until today they couldn't start a conversation. Even if you wanted them to reach out to you, you had to chat them up first. and Bot API 3.6 Added the new field connected_website to Message. The bot will receive a message with this field in a private chat when a user logs in on the bot's connected website using the Login Widget and