telegram

Can a Telegram bot read messages of channel

风格不统一 提交于 2019-12-08 14:39:40
问题 Can a telegram bot read/access a telegram channel that neither I or the bot is administrator of? I know that up to last November it was not possible, but I have heard some people have done this, but so far I am not able to do it. I would really appreciate your input and knowledge. P.s. any workaround would be great. 回答1: The FAQ reads: All bots, regardless of settings, will receive: All service messages. All messages from private chats with users. All messages from channels where they are a

Compiling Telegram Source Code - facing NDK build issue

无人久伴 提交于 2019-12-08 12:54:50
问题 I have searched a lot but could not find the fix for my issue Error while executing '/Users/personal/Documents/android-ndk-r13b/ndk-build' with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/Users/personal/Documents/Android Stuff/myNewRepo/Telegram-master/TMessagesProj/jni/Android.mk NDK_APPLICATION_MK=/Users/personal/Documents/Android Stuff/myNewRepo/Telegram-master/TMessagesProj/jni/Application.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDEBUG=0 APP_PLATFORM=android-14 NDK_OUT=/Users/personal

how to add contacts in telegram-cli by using vcard?

↘锁芯ラ 提交于 2019-12-08 08:10:21
问题 im trying to add my contacts in telegram-cli by using vcard. but when i use this command: import_card <card> nothing happen! it just goes to next line without any error and no contact added. my vcard is VERSION:2.1 how can i improt my contacts to my telegram account by using vcard? 回答1: Install-Package TLSharp client = new TelegramClient(apiId, apiHash); await client.ConnectAsync(); var phoneContact = new TLInputPhoneContact() { phone = "", first_name = "", last_name = "" }; var contacts =

Telegram source code compile error

随声附和 提交于 2019-12-08 05:36:19
问题 i download Telegram source code from github,i got some problems. First: Error for NDK, I found the solution to solve it. Second: it shows google-services.json is missing after I solve the first problem. So I download the google-services.json and put it in the src. Now here is my problem, it shows an Error in one location like this No matching client found for package name I try to put the json file in that location.It doesn't work. Someone can teach me how to solve this problem,please. Where

How to handle a connection error gracefully in requests?

此生再无相见时 提交于 2019-12-08 05:15:26
问题 I have a simple python telegram bot, here's the code: import requests import json from time import sleep import os filename = 'bot_last_update' target = open(filename, 'r') update_from_file = target.read() # check update from file update_from_file = update_from_file.strip() last_update = int(update_from_file) token = xxxx url = 'https://api.telegram.org/bot%s/' % token # We want to keep checking for updates. So this must be a never ending loop while True: # My chat is up and running, I need

How to obtain all messages from my channel in telegram?

倖福魔咒の 提交于 2019-12-08 03:33:22
问题 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 回答1: 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 =

What is easy way to create and use a Self-Signed Certification for a Telegram Webhook?

半世苍凉 提交于 2019-12-08 03:09:53
问题 System info: Server Win Server 2012 Web Server: IIS 8.5 Project platform: ASP.NET MVC Webhook Path: https://webhook.MYDOMAIN.com/api/webhookaction // I use my domain name instead of MYDOMAIN I used the following way to create a Self-Signed Certification to use for a Telegram Webhook but finally telegram return SSL error to me, do you know an easier way to success? A) I Created a Self Signed Certificate by the following OpenSSL command instead of the Wildcard SSL openssl req -newkey rsa:2048

Telegram for Android, confusing NDK error

六月ゝ 毕业季﹏ 提交于 2019-12-08 02:29:08
问题 So I have downloaded Telegram messenger source from GitHub, and I am trying to get it to run on Android Studio for the first time. Now the error is as below: The build failed message is: Error:error: CreateProcess: No such file or directory The detailed log in Gradle Console is: FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':TMessagesProj:externalNativeBuildArmv7Debug'. Build command failed. Error while executing process D:\AndroidStudio\sdk\ndk-bundle

Telegram bot to wait for user reply

久未见 提交于 2019-12-08 01:44:55
问题 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?"]