电报

Telegram Bot API Webhooks Self-signed Certificate issue

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm working on a Ruby language server to manage multiple Telegram Bots via setwebhooks BTW, I'll delivery the server as opensource at BOTServer PROBLEM I have troubles receiving webhook updates from Telegram Bot API Server. I have set a webhook token (Telegram reply "success") but I do not receive any update on the succesfully configured webhook. I think the problem could be around self-signed Certificate mysteries. See old reddit question and answers. I have similar problem and I fair the point is in some "misunderstanding" between Telegram

Android Telegram App --> java.lang.UnsatisfiedLinkError: No implementation found for void

匿名 (未验证) 提交于 2019-12-03 01:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Unfortunally a similar question was removed at Stackoverflow some weeks ago, I must make a new question. Im trying to build an own Telegram app for android via source @ https://github.com/DrKLO/Telegram I can not get it to work, it stops on startup with the following error, any ideas on where to start, Im quite new to Android Studio. 11-17 19:55:04.142 2667-2667/org.telegram.messenger E/art: No implementation found for void org.telegram.tgnet.ConnectionsManager.native_setJava(boolean) (tried Java_org_telegram_tgnet_ConnectionsManager_native

How to convert Telegram voice in a wave file in python

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to save a Telegram voice file in a wave audio file using soundfile library: def ReceiveVoice(bot, update, user_data): voice = bot.getFile(update.message.voice.file_id) voice.download('file.ogg') data, samplerate = sf.read('file.ogg') sf.write('file.wav', data, samplerate) But I'm receiving the following error: File "C:\Python27\lib\site-packages\soundfile.py", line 257, in read subtype, endian, format, closefd) as f: File "C:\Python27\lib\site-packages\soundfile.py", line 624, in __init__ self._file = self._open(file, mode_int,

Steps after creating Authorization Key for Telegram API

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've been messing with implementing a C# version of the Telegram API, but I am stuck. I've successfully figured out how to create an Authorization Key, but I don't know where to go from here. Does anyone know the next step after creating an Authorization Key? The documentation is so difficult to follow. For Reference: Telegram API Note: I am not using the Bot API. I'm trying to use the regular API. 回答1: After creating your Auth_key I find it easiest to ensure I am connected to my nearest DataCenter before I proceed. Also you should send an

Telegram sends duplicate POST JSON requests to webhook

匿名 (未验证) 提交于 2019-12-03 01:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am trying to develop city bot for telegram, but meet a problem. After sending message to bot, Telegram sends 2 duplicate requests to a webhook url. Webhook script works twice and sends twice responses to user. Script - hellobot.php from official telegram docs. Server vps hosting with self-signed SSL, with uploaded cert key to telegram. From server logs. 149.154.167.209 - - [28/Jun/2016:13:48:00 +0300] "POST /apps/gate.php HTTP/1.0" 200 86 "-" "- 149.154.167.209 - - [28/Jun/2016:13:48:00 +0300] "POST /apps/gate.php HTTP/1.1" 200

How to forward a message in Telegram API

匿名 (未验证) 提交于 2019-12-03 01:01:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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 that has internal use. As we know the message_id is a

add new contact in api telegram python telethon

匿名 (未验证) 提交于 2019-12-03 00:54:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: How do I save a number in the my contacts in telethon python? from telethon import TelegramClient from telethon . tl . functions . contacts import GetContactsRequest from telethon . tl . types import InputPeerUser client = TelegramClient ( 'arta0' , api_id , api_hash ) client . connect () #number=+19133704541 #name='ali karimi' what i need module for add contact? 回答1: You can create a contact like this: contact = InputPhoneContact ( client_id = 0 , phone = "+12345678" , first_name = "ABC" , last_name = "abc" ) result = client .

Telegram Bot Game not working

匿名 (未验证) 提交于 2019-12-03 00:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am realizing my bot telegram with a game. I wrote this: $content = file_get_contents("php://input"); $update = json_decode($content, true); if(!$update) { exit; } $chatId = isset($message['chat']['id']) ? $message['chat']['id'] : ""; header("Content-Type: application/json"); $parameters = array('chat_id' => $chatId); $parameters["method"] = "sendGame"; $parameters["game_short_name"] = "prova"; $parameters["text"] = parse_url("<my_html_5_url>"); $message = json_encode($parameters); echo json_encode($parameters); My sample html5 code is: <

Telegram

匿名 (未验证) 提交于 2019-12-02 23:47:01
Telegram Discord 参与Wikipedia项目 Telegram https://telegram.org/ https://zh.wikipedia.org/wiki/Telegram https://wiki.archlinux.org/index.php/Telegram Telegram是一种基于云的跨平台即时消息服务,具有可选的端到端加密功能。 帐户创建需要电话号码。 官方 客户端是开源的 ,但最新版本的代码并不总是立即发布。 服务器端代码是专有的 。 用户可以相互交换加密与自毁消息,发送照片、影片等所有类型文件。 官方提供手机版(Android、iOS、Windows Phone)、桌面版(Windows、macOS、Linux)和网页版等多种平台客户端;同时官方开放应用程序接口,因此拥有许多第三方的客户端可供选择,其中多款内置中文。 有两种类型的聊天管道: “一般聊天”模式 ,使用端到端的加密通信,但服务端会有访问密钥的权限,而且可以经由多重设备登录。 聊天历史会被存储在 Telegram 云端 ,而且可以使用多个设备登录并同步聊天历史。 “秘密聊天”模式 ,使用端对端的加密通信,而且只能经由两个特定设备登录。 官方宣称,当两名用户进行通信时,第三方包含管理人员皆无法访问用户的通信内容[40]。当用户在进行秘密聊天时,消息包含多媒体皆可以被指定为自毁消息

中国通信简史 (上)

强颜欢笑 提交于 2019-11-28 02:34:40
http://hi.baidu.com/hieda/blog/item/2950e71664f03055f3de323f.html 中国通信简史 (上) 1871 年,英国、俄罗斯、丹麦敷设的香港至上海、长崎至上海的水线,全长2237海里。于1871年4月,违反清政府不得登陆的规定,由丹麦大北电报公司出面,秘密从海上将海缆引出,沿扬子江、黄浦江敷设到上海市内登陆,并在南京路12号设立报房。于1871年6月3日开始通报。这是帝国主义入侵中国的第一条电报水线和在上海租界设立的电报局。 1873年,法国驻华人员威基杰(S·A·Viguer)参照《康熙字典》的部首排列方法,挑选了常用汉字6800多个,编成了第一部汉字电码本,名为《电报新书》。后由我国的郑观应将其改编成为《中国电报新编》。这是中国最早的汉字电码本。中国人最早研制的电报机华侨商人王承荣从法国回国后,与福州的王斌研制出我国第一台电报机,并呈请政府自办电报。清政府拒不采纳。 1875年,福建巡抚丁日昌积极倡导创办电报。1875年在福建船政学堂附设了电报学堂,培训电报技术人员。这是中国第一所电报学堂。1877年,福建巡抚丁日昌利用去台湾视事的机会提出设立台湾电报局,拟定了修建电报线路的方案,并派电报学堂学生苏汝灼、陈平国等专司其事。先由旗后(即今高雄)造至府城(即今台南)。负责工程的是武官沈国光。于1877年8月开工