telegram

Where to find the Telegram Api Key

Deadly 提交于 2020-01-07 09:52:10
问题 I am trying to find the Api Key for Telegram but I cannot find it. Where do I find it on the website? If I use the Api Id, I get the error Incorrect Token Format in the C# Console Application. 回答1: In special official bot: https://telegram.me/BotFather Additional information on official Telegram FAQ page: https://core.telegram.org/bots/faq#how-do-i-create-a-bot 回答2: If someone knows how to make the images a bit smaller through formatting please go ahead and do so because that size is insane.

Telegram support phone numbers list

女生的网名这么多〃 提交于 2020-01-07 09:46:07
问题 I'm creating a bot to redirect you to Telegram Support and I need all Telegram support contact list. Is there any accurated list with phone numbers? 回答1: I follow a web page where they give advice and information about telegram, it is called telegramgeeks and I found this list that is so acurated in this link You can see the list in the following photo 来源: https://stackoverflow.com/questions/40673024/telegram-support-phone-numbers-list

How can I delete a post from a supergroup in telegram with telegram-cli?

旧时模样 提交于 2020-01-06 20:05:50
问题 we have a group in telegram and we have a rule says no one must leave a message in group between 23 to 7 am , I wanna delete messages comes to group between these times automatically . could anyone tell me how I can do that with telegram cli or any other telegram client? 回答1: Use new version of telegram-cli. It's not fully open source, but you can download a binary from its site. Also you can find some examples there. I hope the following snippet in JavaScript will help you to achieve your

telethon library: how to add user by phone number

百般思念 提交于 2020-01-06 07:07:05
问题 I am studying Telethon library for Telegram that can act as a Telegram client using Telegram API (Important: this is Telegram client API, not Bot API). The functionality I need is creating a group chat and inviting users there. This works fine when I add somebody who is in my contact list: import telethon from telethon.tl.functions.messages import CreateChatRequest client = telethon.TelegramClient('some_session', 'key', '6284f5acf91b03somehash441ac9eef319') client.start() client

signingConfig.storeFile does not exist when I try to run the project

和自甴很熟 提交于 2020-01-06 01:55:07
问题 I downloaded a project from GitHub and opened it by Android Studio. All required build tools and Android support repositories were automatically downloaded through Android Studio. https://github.com/DrKLO/Telegram Now that I try to run the project , I get an error in Massages. Error:A problem was found with the configuration of task ':TMessagesProj:packageDebug'. > File 'G:\AndroidDev\AndroidStudioProjects\Telegram-master\TMessagesProj\config\release.keystore' specified for property

Sending Telegram messages with Telethon: some entity parameters work, others don't?

狂风中的少年 提交于 2020-01-05 08:27:10
问题 I'm using Telethon's send_message function to send messages to various chats. Sometimes, the destination is another user (just a regular one on one chat), sometimes a group, sometimes a supergroup, and sometimes a channel (of which I'm admin). If I understand correctly, the syntax is supposed to be: client.send_message(entity,text) But I can't figure out what the entity parameter is supposed to be in different cases. What I find especially confusing is specifying an integer id seems to work

Easiest way to join a channel in python telethon

走远了吗. 提交于 2020-01-03 21:16:30
问题 I read telethon documentation to retrieve an user-name and join a channel. After some tries i wrote this code: result = client.invoke(ResolveUsernameRequest('XXXX')) channel = InputChannel(result.peer.channel_id, result.chats[0].access_hash) client.invoke(JoinChannelRequest(channel)) This code works fine but i want to know is there a better or simpler way? 回答1: first upgrade telethon from telethon.tl.functions.messages import ImportChatInviteRequest updates = client(ImportChatInviteRequest(

What's the telegram API method to get “user is typing” info on a conversation?

跟風遠走 提交于 2020-01-03 21:03:36
问题 I am trying to implement a very basic Telegram client. I would like to know how can I get the info that tells me the other user is typing. I know how to send this information: By using the setTyping method. Now how can I receive it? There is no getTyping mehtod, and the API description is quite confusing. 回答1: upon "writing status" change, your app will receive an update of the type updateUserTyping. From there you can get the information. Hope it helps 来源: https://stackoverflow.com/questions

How to create a link to contact specific phone number via Telegram?

邮差的信 提交于 2020-01-03 15:34:25
问题 So I found out I could use a link like this in HTML: <a href="https://api.whatsapp.com/send?phone={{phone_number}}" target="_blank">WhatsApp</a> in order to let a user contact {{phone_number}} directly from a webpage (via WhatsApp web). My question is: how to do the same but instead of WhatsApp, via Telegram? Thank you in advance 回答1: It's NOT possible to link to Telegram like this for a phone numbers so far, because every user MUST add the phone number to their contact list before they can

How to read content of a Telegram channel posts by post link?

眉间皱痕 提交于 2020-01-03 04:23:05
问题 Telegram channels posts have the post link when it is right clicked on it and in this form: https://telegram.me/channel_name/post_ID The question is how we can read the content of that posts (text, image, video, audio) using a bot on the server? 回答1: There is no way to do this at the moment. You can try using the telegram-cli ( test branch supports channels), but it cannot find the post by its POST_ID — only by the full message id. 来源: https://stackoverflow.com/questions/37888354/how-to-read