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 convert telegram session to json file

I searched the internet for a solution, but couldn't find anything I tried to parse the session data, but the problem is that you can't get all the data, I couldn't find "register time" What I want to see in Json: {"session_file": "6285351202414",…
1
vote
0 answers

Telegram bot authentication function

I am working on a Telegram bot (using aiogram package) and one of the requirements is to make user authentication. For example after /start command bot asks "Are you a client or an employee?" and employee has to send login and password to…
1
vote
2 answers

Telegram API Custom Emoji sending in message

As described in api doc for telegram - i can send custom emoji in message. As update i receive somethings like this: "text": "", "entities": [ { "offset": 0, "length": 2, "type": "custom_emoji", "custom_emoji_id":…
1
vote
0 answers

Telethon → Enable tracemalloc to get the object allocation traceback

I try to make a program to get the content of a Telegram Channel using Telethon (I'm begginer) : from telethon import TelegramClient, events, sync # Remember to use your own values from my.telegram.org! api_id = 12345678 api_hash =…
1
vote
1 answer

Telethon New Message Event Handler waits minute

Telethon event handler waits 1 minute before sending out a burst of messages at the same time. I tried removing functions from other souces as I thought that could be it and it did not work. code: ` from telethon import TelegramClient, events import…
makors
  • 29
  • 2
1
vote
1 answer

Send message to telegram with no access to DNS

Is there any option to send message to telegram while there is no access to DNS server (no option to resolve api.telegram.org url) ? Tried with 149.154.167.220 instead of api.telegram.org - no luck
Ilex
  • 11
  • 1
1
vote
0 answers

How to fix Telethon error: Connection to Telegram failed 5 time(s)

I have a robot. which is listening 3 Telegram channels in eternal mode. Sometimes it works as it should (eternally), but sometimes I caught mistakes. Such as: Automatic reconnection failed 5 time(s)Future exception was never retrievedfuture:…
1
vote
1 answer

Python-telegram-bot bypass flood and 429 error using Scrapy

I follow the price drops on the target site. If there is a price decrease in accordance with the rules I have set, it is recorded in the notificate table. From there, a telegram notification is sent through the code I created in the pipelines.py…
1
vote
0 answers

Telegram Bot - permission levels for commands

I'm new in Telegram Bot. There is way to setup permission level for only some commands? I mean, instead of only "Admin" and "User" levels, have a "User+" role that has access to extra commands in the bot chat than stardard Users. Thanks for help.
GioGaraisu
  • 11
  • 2
1
vote
1 answer

Using MadelineProto to build a channel management app

So I'm trying to build a mobile application that logs users in using telegram authentication API. They can register their channels in the app for inviting other users or they can join other users channels. After searching for the best…
reza z
  • 11
  • 2
1
vote
2 answers

Telegram bot sends "my_chat_member" object instead of "message" object on start via webhook

I have a telegram bot where the user can send /start command and I will receive this command on my server via web hook. In 99% of cases the request from telegram looks like this: { "update_id":99999999, "message":{ "message_id":9999, …
daewoosh
  • 193
  • 3
  • 11
1
vote
1 answer

How to login bot via WTelegramClient

This library allows you to connect to Telegram and control a user programmatically (or a bot, but Telegram.Bot is much easier for that). I see WTelegramClient can control a bot, but I don't know how to login a bot. Please give me an exsample just…
1
vote
2 answers

How to edit a private channel's message/post using telegram bot in python?

I manage a channel that give links/information to users. Every time I update the content of the channel I have to update index of the channel in a post (message) manually. Please teach me how to update a telegram post using telegram bot in python.…
1
vote
1 answer

How to dowload image from Telegram Web App

I have a site, containing only an image in the center of it. When somebody clicks it, image begins downloading to the user's computer. Recently, i've tried to launch it as Telegram Web App and there happend to be a problem. When i click the image on…
1
vote
1 answer

how to get telegram CHANNEL member list?

How can I get telegram CHANNEL member list? (not GROUP) I am not an admin or owner of the channel but can I get the member list? I am just a vistor of that CHANNEL Anybody know the answer please let me know I have searched for this already but there…
jun
  • 11
  • 2
1 2 3
99
100