telegram

How to get user_id of a phone number in telegram

无人久伴 提交于 2019-11-27 13:48:13
问题 Im creating a bot to send message to multiple contact in Telegram. user can share contact with bot. then i use getUpdates and obtain the phone number. For using the sendMessage Method i need the chat_id. now how to get chat_id of a user with his phone number? Is there any way better than this method to do this? 回答1: For internet services to stay alive, they need to fight with any type of spam. As the result, Telegram bots can't start sending messages to users that didn't start using the bot

How to set Telegram bot webhook?

岁酱吖の 提交于 2019-11-27 13:10:46
问题 I'm developing a Telegram bot, and I want to set the webhook to my domain's URL. I've already generated a self-signed certificate following the Telegram's guide. However, I'm not able to set the webhook. I've searched previous answers and found this one, but it doesn't work to me. Can anybody explain me how to upload the SSL certificate and set the webhook? 回答1: I created a file on my server for conveniently setting up telegram webhooks. You can use the same file on your server. This should

How to open specific contact chat screen in various popular chat/social-networks apps?

本秂侑毒 提交于 2019-11-27 11:44:16
Background I've found that there is a way to open a specific contact conversation screen on WhatsApp, here . Not only that, but I've found that an app called " Drupe " does the same, and maybe even more : https://lh3.googleusercontent.com/EQrs1jplMlP8SkOTdpqT4NzmgzGa5Wz2qageG1Pkjc6rKg0HBb-rwlOVW07_G7bAWgo=h900 The problem I can't find any official API of opening it this way, so I'm not sure how safe it is. I've found SDKs, but not intents instructions. The questions I'd like to know more about what's available for various social-networks and chatting apps : WhatsApp Facebook Messenger Viber

Steps after creating Authorization Key for Telegram API

怎甘沉沦 提交于 2019-11-27 08:13:49
问题 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

How do I add my bot to a channel?

青春壹個敷衍的年華 提交于 2019-11-27 00:11:45
问题 I'm using my bot to tell important news, but when I using sendMessage to the channel I'm receiving the following error: {"ok":false,"error_code":403,"description":"Error: Forbidden: bot is not a participant of the channel"} In the Change Log they mention it's not possible via the client to send a message to a channel, but then what is the other way to do that? So, the question is, how to add my bot to the channel? 回答1: Now all clients allow to do it, but it's not pretty simple. In any

How to solve disturbance in my bot in c#?

泪湿孤枕 提交于 2019-11-26 23:07:39
I made a telegram Bot. In fact, the bot is a game, play guess certain words.But the problem is when I add robots to two different groups (as an administrator) or Two user-Telegram, separately ،use of the bot and start bot,Puts the impact of what they played together.Game one person is caused a disturbance in next person game. for example: if john start my bot in Mobile and desired_word for john is Newyork and length=7 ,when sara start my bot in Mobile. Len_desiredwords for john for example Become to 5 . library = NetTelegramBotApi 4.0.0 vs = 2013 v4; Do not know what to do. code: using System;

create dynamic Keyboard telegram bot in c# , MrRoundRobin API

守給你的承諾、 提交于 2019-11-26 21:24:33
问题 I want to create custom keyboard in telegram.bot For example: We have an array of string that gets from the database or other recurses how we can push data from the array to InlineKeyboardMarkup in for loop or function //array of Button string[] ButtonItem= new string[] { "one", "two", "three", "Four" }; //function or solution to create keyboard like this var keyboard = new InlineKeyboardMarkup(new[] { new[] { new InlineKeyboardButton("one"), new InlineKeyboardButton("two"), }, new[] { new

Telegram Bot - how to get a group chat id?

人盡茶涼 提交于 2019-11-26 15:06:43
问题 I've been using telegram_bot, and trying to get groupChat id to send notifications to group chat, but don't know which methods I have to use for it. For getting chat id I use to message.chat.id when the bot participated in the chat but which I have to use for getting group chat id can't find/ 回答1: In order to get the group chat id, do as follows: Add the Telegram BOT to the group. Get the list of updates for your BOT: https://api.telegram.org/bot<YourBOTToken>/getUpdates Ex: https://api

How to solve disturbance in my bot in c#?

时间秒杀一切 提交于 2019-11-26 08:36:52
问题 I made a telegram Bot. In fact, the bot is a game, play guess certain words.But the problem is when I add robots to two different groups (as an administrator) or Two user-Telegram, separately ،use of the bot and start bot,Puts the impact of what they played together.Game one person is caused a disturbance in next person game. for example: if john start my bot in Mobile and desired_word for john is Newyork and length=7 ,when sara start my bot in Mobile. Len_desiredwords for john for example

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

你说的曾经没有我的故事 提交于 2019-11-26 06:38:09
问题 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