Questions tagged [telegram]

Telegram is a cross-platform cloud-based instant messenger with a focus on security. Use this tag for questions about interacting with Telegram, including use of its official API.

Main features

Messaging

It was the main feature of Telegram. It allows you to send messages to users who have the contacts and we know the nickname.

Groups

The groups are conversations between more than two users, I can reach up to 200 users. Each member of a group can add users, change the name of the group or avatar. Exceeded 200 members, the group becomes a "Supergroup". The supergroup can get to 100,000 users.

Channels

The channels are groups that do not have a limit of users . The peculiarity is that only administrators can write to the channel.

Bots

Telegram Bots are programmed accounts without a phone number. they can not initiate a conversation with a real user. The bot API provides methods to interact with users including sending and editing messages, custom keyboards, commands. (API Documentation)

5905 questions
1
vote
0 answers

How to permanently delete photos [with photo name] from telegram using API in ASP.NET C#?

I am looking to delete a photo (test.png) permanently from telegram, sent by my bot using telegram API and I'm able to deleting the photo (message) using deleteMessage so if I use the same photo with the same name (photo ex: test.png) and modifying…
Kumar
  • 73
  • 5
1
vote
0 answers

How to connect mtproto telegram client without library / framework?

I've been looking for a way to make a connection to the telegram api for a long time, but I didn't find anything suitable i have read this: https://core.telegram.org/mtproto and this: How to implement authorization using a Telegram API? But I can't…
1
vote
1 answer

How to Print the Version of an updated Package?

I'm just trying to get a notification from my weekly Update Ansible Task. The Idea is to get a notification when a specific repository got an update, e.g. "Jellyfin got the update 10.8.7-1". So far the Playbook look like this: - name: Manages…
davidsteg
  • 11
  • 1
1
vote
1 answer

is not a valid SentCodeType pyrogram

after I enter the phone number in the console for the pyrogram, the bot user string app.run() pyrogram gives this error: Exception has occurred: ValueError is not a…
1
vote
0 answers

How to output text from the Database in InlineKeyboardButton?

I want to ask a question how to output data from the database to the button, I need to output the name of the processor, it turned out to do so in the form of text, but I can't attach how to insert the mind into the button elif call.data ==…
1
vote
2 answers

Download files using Python-Telegram-bot

I was trying to download the file send by the user via telegram app using python script, I am using the Python-telegram-bot library, I was not able to download the file, below is my code. from telegram.ext import ApplicationBuilder, MessageHandler,…
Bhuvan Kumar
  • 554
  • 1
  • 7
  • 23
1
vote
0 answers

How can I make multiple telebot handlers at once?

how can i make multiple handlers at once using the telebot library in go? i want to make a dialog between a user and a bot i was able to find something similar using python, but it didnt help me i want the user to be able to perform authorization in…
Ilya
  • 25
  • 6
1
vote
0 answers

Telegram Bot: Send A message to multiple chat ids

I've been trying to send a message to multiple chat IDs using telegram bot I've this code from telegram import Bot, InputMediaDocument BOT_TOKEN = "xxxxxx" CHAT_IDs = [-1001xxx,-100177xxx,-100188xxx] for CHAT_ID in CHAT_IDs: x x x …
Ajesh
  • 43
  • 10
1
vote
0 answers

Is it possible to create a form to send information from the site to a WhatsApp or Telegram number?

sorry for the long introduction I have a form on my website to submit the information customers enter to the Telegram bot no matter what I do, someone is hacking into my bot and getting this information I changed the bot multiple times and obfuscate…
wael
  • 33
  • 6
1
vote
0 answers

C# telegram bot - need inline buttons to behave like / commands

I am creating a telegram bot and am currently using / commands to navigate through the bots menus and options, however I would like to use inline buttons for a neater look. The help I’ve found online has helped me to print buttons to the chat but I…
1
vote
1 answer

Send message to user when he is online in Pyrogram

I am using Pyrogram to make userbot. I need to check if user is online and if he is online I will send him a message. I couldn't understand documentation. from pyrogram import Client app = Client( "my_account", api_id= 111111111, …
1
vote
0 answers

Telegram bot auto message

My English is a bit bad, I'll write as best I can. I am writing a telegram bot that will periodically send notifications by user_id, when you start the cycle of checking for new data in the request and sending it to the user, the whole code freezes…
Ramretyw8
  • 11
  • 1
1
vote
1 answer

Trying to make message randomizer with parts PYTHON

So this bot is telegram bot, which sends people a message after random intervals. What I want to create is a code, which will put together full message from randomly chosen message segments. So here is the message from the code: messages= ["Hey I'm…
1
vote
1 answer

How to do a telethon login using GUI

I'm new to telethon, and I'm trying to make a GUI for my application using python. The problem is when I run this code: from telethon import TelegramClient id = ****** hash = ******* client = TelegramClient("test",id,hash) client.start() it…
user18932371
1
vote
0 answers

Can I create a commercial app using telegram API?

First question: Can I create a different type of commercial app using telegram API? For example, can I create a dating app based on Telegram API using groups as chat rooms for my users? Second question: Do I have to publish my code to GitHub? I see…
G'ofur N
  • 2,582
  • 3
  • 14
  • 21