telegram

How to send big files from URL to Telegram bot?

余生颓废 提交于 2019-12-07 15:50:25
问题 I have some big size files (in MP4 and Zip formats) and I want to send them to my chat by Telegram bot, I used the code below: file_get_contents('https://api.telegram.org/bot[[app:token]]/sendDocument?chat_id=24523586&document='.$fileAddress); But it just can send files with small sizes, less than 50MB! But I know there is no file size limitation for documents which are sending by file_id . You can see this page Now how can I make file_id for my files? My files are uploaded on my server and I

Chat API to add and remove members automatically [closed]

时光毁灭记忆、已成空白 提交于 2019-12-07 13:06:37
问题 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

Read the messages of the public channels from Telegram

痞子三分冷 提交于 2019-12-07 12:55:22
问题 I need to read the messages of some public channels in the application, as for example it happens https://tlgrm.ru/channels/tech As I understood, the bot for this business will not work. You need to use client api, but everywhere that with the channel methods are connected everywhere you need channel_id but where do I get it I do not know, I only have channel names, and how do I get it from it id I did not find such a method. How can I get the channel's id by its name? 回答1: Assuming you're

Error:Execution failed for task ':TMessagesProj:dexDebug'. Process 'command 'jdk1.8.0_66\bin\java.exe'' finished with non-zero exit value 1

我怕爱的太早我们不能终老 提交于 2019-12-07 12:06:40
问题 I've imported Telegram project in android studio, After 4 hour spending about import required libraries I got below error. What should I do ? Error:Execution failed for task ':TMessagesProj:dexDebug'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_66\bin\java.exe'' finished with non-zero exit value 1 trouble processing "java/awt/BorderLayout.class": Ill-advised or mistaken usage of a core class (java

what should be structure of website to retrieve site information in telegram?

谁说我不能喝 提交于 2019-12-07 07:37:13
问题 Some website retrieved information in telegram when send link and some website doesn't like this: So my question is there any structure for website to load information in telegram ? 回答1: The Open Graph protocol enables any web page to become a rich object in a social graph like Facebook, twitter, telegram, Skype and ... As an example, the following is the Open Graph protocol markup for The Rock on IMDB: <html prefix="og: http://ogp.me/ns#"> <head> <title>The Rock (1996)</title> <meta property

Telegram-based chat on a PHP-based site: HOWTO?

五迷三道 提交于 2019-12-07 06:20:06
问题 I can't figure out what exactly to use for interaction between my site and the Telegram service (first of all - how to get the authentication process done using PHP and other stuff like chat among users). On this page: https://core.telegram.org/api I haven't got an idea how to use those functions in PHP. According to this page: https://telegram.org/apps I have two choices: 1) The CLI-interface (unofficial, by the way): https://github.com/vysheng/tg and it doesn't have an autentification

Handle multiple questions for Telegram bot in python

时间秒杀一切 提交于 2019-12-07 06:10:53
问题 I'm programming a telegram bot in Python using the Telegram bot API. I'm facing the problem of managing questions that need an answer of the user. The problem arises when the program is waiting for an answer of one user and another user request information or ask another question before the first user responds. The Telegram API uses a code to handle the request. When you ask for updates you include a code. If the code you send is higher than a request code, it is mark as handled and telegram

Create new group using telegram bot API

拥有回忆 提交于 2019-12-07 05:34:39
问题 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 回答1: 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. 回答2: I myself don't use

Telegram bot api keyboard

孤人 提交于 2019-12-07 02:50:40
问题 I have problem with Telegram Bot Api and with "ReplyKeyboard". I'm using Python 2.7 and I send post request: TelegramAPI.post(TELEGRAM_URL + "sendMessage", data=dict(chat_id=CHAT_ID, text="", keyboard={'keyboard': keyboard, 'one_time_keyboard': False, 'resize_keyboard': True}) keyboard in this format: [["A button"], ["B button"]] But in Telegram I don't see keyboard. What problem can be? 回答1: According to the Bot API documentations, a custom keyboard requires a reply_markup parameter, whose

How to obtain all messages from my channel in telegram?

放肆的年华 提交于 2019-12-07 02:48:32
Hellow everyone! I have a channel on telegram. And I want to automatically build windows on my site. Widget gets last messages from channel on telegram. Like a twitter widget. Can't to find adequate manual for it You can use: updates.getChannelDifference#bb32d7c0 channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference; It will return one of these: updates.channelDifferenceEmpty#3e11affb flags:# final:flags.0?true pts:int timeout:flags.1?int = updates.ChannelDifference; updates.channelDifferenceTooLong#5e167646 flags:# final:flags.0?true pts:int timeout