telegram

telegram botfather doesn't allow making more bots

泪湿孤枕 提交于 2019-12-11 02:05:49
问题 I'm trying to make telegram bot .I have made 20 bot so far and now when I select newbot from bot father it says this : " That I cannot do. You come to me asking for more than 20 bots. But you don't ask with respect. You don't offer friendship. You don't even think to call me Botfather" How Should I make more bots?? Thanks 回答1: It already said that you can't create more bot with this account. There is no way to do that except delete useless one. You might want to create bot via your friends'

Upload file on Telegram with bot

白昼怎懂夜的黑 提交于 2019-12-11 01:47:01
问题 I want to send file from URL to user with Telegram Bots, My files extension in .attheme but I can't upload this files from Url. Currently I can upload .zip , .pdf , but i want upload a .attheme file from PHP code. This bot can upload any type of files into Telegram: @uploadbot How can I do this ? 回答1: Sending a file by URL only works for certaining file types. If you want to upload other types of files you will have to post the file, after saving it on your own server, using multipart/form

How to forward a message in Telegram API

旧时模样 提交于 2019-12-11 01:35:21
问题 There are 2 methods in Telegram API that forward message: messages.forwardMessage messages.forwardMessages I want to use forwardMessage method to forward a message from a channel , group or user to another one. Definition of this method is: messages.forwardMessage#33963bf9 peer:InputPeer id:int random_id:long = Updates; As you see this method has 3 input parameters: peer that represents the channel , group or user that we forward message to. (Destination) id that is message_id . random_id

What is error code 35, returned by the telegram.org server

谁说胖子不能爱 提交于 2019-12-11 00:25:09
问题 My client often receives the following message container from the telegram server, seemingly at random: {'MessageContainer': [{'msg': {u'bad_msg_notification': {u'bad_msg_seqno': 4, u'bad_msg_id': 6330589643093583872L, u'error_code': 35}}, 'seqno': 4, 'msg_id': 6330589645303624705L}, {'msg': {u'msgs_ack': {u'msg_ids': [6330589643093583872L]}}, 'seqno': 4, 'msg_id': 6330589645303639041L}]}) You may notice: 'error code': 35 above, but there is no description of what that error code means. So

how to use telegram API on c# via Json?

孤街醉人 提交于 2019-12-10 23:40:17
问题 i was looking at telegram API functions list at: https://core.telegram.org/method/auth.checkPhone and want to know what's the language name of this codes: (auth.checkPhone "1548789888")"= (auth.checkedPhone phone_registered:(boolFalse) phone_invited:(boolFalse) ) is this json type? how can i write it on c#? where can i find a sample application? same question 回答1: Telegram has its own internal encoding language called TL. It is used to describe all the types as well as commands that Telegram

How do “Simple PUSH” events work in Telegram?

时光毁灭记忆、已成空白 提交于 2019-12-10 21:25:56
问题 The documentation for subscribing to the PUSH infrastructure in the Telegram API is very lacking, as it mainly focuses on mobile platforms. But what if one is developing a web app or a desktop app? How does the "Simple Push" mode work in this case? I've tried to look at the javascript sources for webogram, and it's not clear if it uses PUSH infrastructure or just polling with a timeout (some commits state "initial changes towards push messaging", but it's not clear if it's finished). Looking

How can I write bold in python telegram bot [duplicate]

随声附和 提交于 2019-12-10 21:25:18
问题 This question already has answers here : How do I print bold text in Python? (12 answers) Closed last year . I am writing a telegram bot in python. I want to print messages with bold letters. I tried to use * and **, but it does not help. Is there a function for formatting or a way to do it? 回答1: You should use: bot.send_message(chat_id=chat_id, text="*bold* Example message", parse_mode=telegram.ParseMode.MARKDOWN) Or: bot.send_message(chat_id=chat_id, text='<b>Example message</b>', parse

Telegram API : How keep ApiState to save signIn state

僤鯓⒐⒋嵵緔 提交于 2019-12-10 18:23:41
问题 I used telegram api from this source : https://github.com/voleon/telegram-trivia-bot But my problem is , how keep the user signed in. Because after the App stop need user renter Mobile phone and get activation code from SMS message. I have implemented Serializable for saving ApiState object. but this method not solved my problem. this is the code for my ApiState : package engine; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io

Create telegram auth_key

青春壹個敷衍的年華 提交于 2019-12-10 16:27:38
问题 I've recently started to work with the telegram api. In the first stage, I made a request to receive auth_key . This is my c# code : // auth_key_id in unencrypted message is ZERO Int64 auth_key_id = 0; // this is current time stamp that used as message id Int64 message_id = DateTime.Now.Ticks; // message type for req_pq is 0x60469778 in big-ending format byte[] message_type = {120, 151, 70, 96}; // this is data lenght, it determind in run time Int32 data_lenght; // data is combined message

Application crashes on iOS 13 because of returned nil from -traitCollection, which is not allowed

北战南征 提交于 2019-12-10 15:57:47
问题 I am working on Telegram source code from the archived repo and application crashes in every ViewController and I can see the following error. I also tried to comment out some codes but the crash just moves from one class to another. Is there any way to stop traitCollection from causing these crashes? Telegram[50090:787790] *** Assertion failure in UITraitCollection * _Nonnull _UIGetCurrentFallbackTraitCollection(void)(), /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKitCore_Sim/UIKit