telegram

Android send message through telegram?

主宰稳场 提交于 2019-12-12 08:15:29
问题 I have installed the telegram app and just want to send a message (string) from my app through telegram to a contact. All I found yet is in the question: How to send a Intent with telegram with the code: //Sending message void intentMessageTelegram(String msg) { final String appName = "org.telegram.messenger"; final boolean isAppInstalled = isAppAvailable(this.getApplicationContext(), appName); if (isAppInstalled) { Intent myIntent = new Intent(Intent.ACTION_SEND); myIntent.setType("text

Status Bar sensitive information like Telegram X

痴心易碎 提交于 2019-12-12 08:04:24
问题 I`m digging for many days and didn't found the information about this functionality that presents in Telegram X (newest version which the source code isn't opened yet, running on nexus 5x api 27 emulator) When application is in "waiting for network" , this information appears inside your translucid status bar, like this gif. My questions is, how could I achieve this? Sounds like they are using some kind of context to hide content inside status bar (look at notification icons and mobile

telegram bot don't send mp3 file from xammp server in windows server

ⅰ亾dé卋堺 提交于 2019-12-12 04:46:11
问题 My mp3 link is : 1.mp3 OS = Windows Server 2008 and run xammp server My code is : https://api.telegram.org/bot_token/sendAudio?chat_id=@test&audio=http://panel.cafefars.com:8088/mp3/1.mp3 Error after run : {"ok":false,"error_code":400,"description":"Bad Request: failed to get HTTP URL content"} mp3 url is correct but telegram not download thanks all 回答1: Firstly you should encode your URL - by this one for example. Secondly you should check your URL because it doesn't work for me too, but

max retry exceeded with url in telegram bot

假如想象 提交于 2019-12-12 04:38:29
问题 I started writing a telegram bot in python. but when I run it after a while it returns an error: Exception in thread updater: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 137, in _new_conn (self.host, self.port), self.timeout, **extra_kw) File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 91, in create_connection raise err File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 81, in create_connection

Cannot receive incoming JSON from Telegram webHook ASP.NET

一个人想着一个人 提交于 2019-12-12 04:26:10
问题 So the problem is that I have set a webHook address for my Telegram bot like this: https://api.telegram.org/bot<TOKEN>/setWebHook?url=https://evolhookah.com/Home/ReceiveWebhook Afterwards, I received confirmation in JSON format stating that from now Telegram will send messages to that URL. Then I created a method ReceiveWebhook(), which is responsible for handling incoming requests, which used to look like these methods (none of them worked): public ActionResult ReceiveJSON(int? id) { Stream

clear pending_update_count in Telegram Bot

寵の児 提交于 2019-12-12 04:04:22
问题 I created a Telegram Bot and setwebhook to a ssl url. My developing language is Php. In testing time, every thing worked fine but after many hours and two or three users have been registered, I got bellow error on getWebhookInfo {"ok":true,"result":{"url":"https://xx.com/get-text","has_custom_certificate":false,"pending_update_count":111,"last_error_date":1501993548,"last_error_message":"Read timeout expired","max_connections":40}} I found that pending_update_count could not be cleared. After

Can I access my telegram's messages as json? [closed]

为君一笑 提交于 2019-12-12 03:59:02
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I'm trying to store all messages which are exist in my telegram application. For example all my private chats and all group's messages and channel's messages I'm a member of them. I use PHP programming language. And I need to get all messages as .json (instead of seeing them into

TimeoutException on telegram java client

ぃ、小莉子 提交于 2019-12-11 23:52:10
问题 i used the java telegram api to communicate with telegram core api in windows intellij idea https://github.com/ex3ndr/telegram-api But the app is facing Timeout error in line TLConfig config = api.doRpcCall(new TLRequestHelpGetConfig()); Full source code: AppInfo appinfo=new AppInfo(45687, "Myapp", "154", "587","en"); TLRequestAuthCheckPhone checkRequest = new TLRequestAuthCheckPhone("96521452365"); MyApiStorage state=new MyApiStorage(); TelegramApi api = new TelegramApi(state, appinfo, new

Telegram, Java: upload file to send in sendAnimation

微笑、不失礼 提交于 2019-12-11 18:55:50
问题 There's a method in Telegram API called sendAnimation . There are two obligatory paramteres: chat_id and animation . animation 's descriptio is this: Type : InputFile or String Description : Animation to send. Pass a file_id as String to send an animation that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an animation from the Internet, or upload a new animation using multipart/form-data. More info on Sending Files » I have a local .gif file

Read public channel texts using Telegram API

爷,独闯天下 提交于 2019-12-11 16:29:55
问题 I would like to create a small script that will fetch Telegram texts from a public channel (I am not the channel's admin). I've found another question asked here: Read the messages of the public channels from Telegram I've tried using Telethon as said in the answer, but it didn't work: from telethon.tl.functions.contacts import ResolveUsernameRequest import telethon client = telethon.TelegramClient("session.txt", api_id=XYZ, api_hash='XYZ') client.connect() response = client.invoke