Questions tagged [telegram-api]

The API for the Telegram messaging service. More information on the API and the TDLib library (for the AP available for multiple programming languages), can be found at .

237 questions
-1
votes
1 answer

create button 'copy' telegram api

I am creating a simple telegram bot. I send a message from the server: https://api.telegram.org/bot{API_KEY}/sendMessage?chat_id={CHAT_ID}&text={TEXT_MESSAGE} I would like to attach a button to it, when clicked, a certain link would be copied to the…
-1
votes
1 answer

I got an error when create telegram application

On my Telegram site, after filling in the fields, when I click on the submit button, I encounter this problem: Does anyone know what the solution is?
-1
votes
1 answer

What should I learn to code a bot in Telegram?

I want to code and creat a bot for telegram that does these things: 1 - shows a massage to the person that hit start button 2 - then it gets a name as an input 3 - then again shows a massage 4 - getting an input 5 - at the end add the inputs to a…
-1
votes
1 answer

How to add a member to a telegram group using the API

When we're going to create a group, we can select (from the contact list) who we want to add to that group. How can I do the same (bulk add members) using a script (with the Telegram API or similar)?
-1
votes
2 answers

How do I get the other user's id from a chat in Telegram?

I wonder how I can find the id of a certain user I started a regular or secret chat with. Example: dialogs=client.get_dialogs() for dialog in dialogs: print(dialog.peerUser_id) What can substitute the peerUser_id? Note: I use Telethon Library
-1
votes
3 answers

Telegraf JS: how can i clear history of a chat?

How can i Clear the Chat History, in my case the Bot Chat history with Telegraf.js? I saw in Telegram API that is there a way to clear History of a chat: https://core.telegram.org/method/messages.deleteHistory WIth messages.deleteHistory(), but i…
Matt
  • 127
  • 1
  • 13
-2
votes
1 answer

how to get user_id of my channel member when joined , by php and telegram api

I have a private channel in Telegram and a bot that I have added to the channel as a member of the administrators, and the web hook is also set to my php code file. I plan to manage the membership of the channel members with the Telegram web service…
-2
votes
1 answer

How to sign in in Pyrogram only by phone number Telgram

app = Client.sign_in("phone_number") How to sign in in Pyrogram only by phone number without api_hash and api_id
-2
votes
1 answer

How can I comment on a post in a telegram channel (WTelegramClient)?

How can I comment on a post in a channel using WTelegramClient? I didn't find anything similar in the examples. If possible, could you provide an example of sending a comment to a specific post in a channel. https://github.com/wiz0u/WTelegramClient
VooDee
  • 11
  • 1
-2
votes
1 answer

Send Location by Telegram API client

I use TLSharp lib. How can i send my location to user. i known how to send simple text message, but cant understand how share my geoposition. var store = new FileSessionStore(); var client = new TelegramClient(api_id, api_hash,…
-3
votes
1 answer

Send to public group, not send myself

How to send message to Public Group contain my bot already (using your C# code)? //below only send to myself Interaction.InputBox("Type some text to send to ourselves\n(Saved Messages)", "Send to self");
-4
votes
1 answer

How to stop a function from another function?

TOKEN = 'token' bot = telebot.TeleBot(TOKEN) def main(): for i in range(0,100): print(i) @bot.message_handler(commands=['start']) def start(message): main() @bot.message_handler(commands=['stop']) def stopfunc(message): #how to stop…
Акмаль
  • 143
  • 1
  • 6
1 2 3
15
16