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
3
votes
2 answers

C# How to get messages from channel/contact using Telegram API (not Bot API)

I found many examples using the bot api, however I need a simple client that implements an event when a message from a contact or group is received, as a user and not a bot (so the Telegram api, and not Bot api). TLSharp library doesn't implement…
Jaume
  • 3,672
  • 19
  • 60
  • 119
3
votes
1 answer

Is there a way in Telethon to get messages from chats along with the sender name, date and time?

I could get messages from chats but I need to add sender name, date and time along with the message.
Dr.Die_OXide
  • 300
  • 2
  • 18
3
votes
1 answer

Is it possible to send messages to Telegram's "Saved Messages" through the API?

Is it possible to send a message via Telegram API to the Saved Messages chat? I have been looking all over the internet but could not find any information. I would think this would be possible.
Keff
  • 989
  • 7
  • 27
2
votes
1 answer

telethon forward Media (photos and videos)

I am using a telegram bot that forwards messages from a certain channel to any other channel I am on. I want it to forward media files, it doesn't forward media file. Also getting this error: RPCError 400: CHAT_FORWARDS_RESTRICTED (caused by…
Lofiuiu
  • 31
  • 4
2
votes
1 answer

WTelegramClient How to apply proxy settings?

An application was written using the WTelegramClient library. There was a task to use the proxy server settings to connect to the Internet: Address, Port, Username, Password. Now the connection is made without a proxy. We declare variables: using…
ShuherVit
  • 31
  • 3
2
votes
1 answer

How to delete my avatar in WTelegramClient

Currently, I am using WTelegramClient library on C#; how can I delete my telegram account avatar?
2
votes
1 answer

Via Client.Update how to find out that I sent a message?

Tell me how I can understand what is in the handler Client.Update. Is the message coming from me? For some reason, it happens that I look at the From_id and From.Id, there is my ID, then for some reason, there is not. As I understand it, it shows my…
Piker
  • 23
  • 2
2
votes
1 answer

How to solve telegram api java api error 404

I need help with this error when working with Telegram API Error removing old webhook at org.telegram.telegrambots.util.WebhookUtils.clearWebhook(WebhookUtils.java:112) ..... Caused by: Error deleting webhook: [404] Not Found I have created a bot…
Hard Worker
  • 995
  • 11
  • 33
2
votes
0 answers

How to associate a telegram user with user in my system

I have a membership website, and I want to add a telegram group for members, but be able to remove people from the group if they stop being a member. I can't figure out how to associate the users on telegram with my users via the Telegram API. The…
Adam Tal
  • 921
  • 5
  • 14
  • 35
2
votes
1 answer

WTelegramClient, when and where to enter verification code after initial config run?

I am using WTelegramClient library with ASP.NET MVC project, to access Telegram API. Using this code, works good, until verification code received on App. I am figuring out, how do I enter this code and where in my view page, when initial code is…
Hemal
  • 3,682
  • 1
  • 23
  • 54
2
votes
1 answer

How to get and send all messages from the channel to channel?

I have a code that can copy a message from one channel to another channel, but this code works only for "NewMessages", how to make this code to send all messages from the channel to another channel? from telethon import TelegramClient, events import…
SkruDJ
  • 157
  • 8
2
votes
1 answer

How to work with messages from WTelegramClient updates? (get chat/user infos)

I'm new to the WTelegramClient C# Library and was used to TLSharp (not working anymore) I'm trying to understand how I get User info after update is received, I have the example code that listen to updates and write them in console but I can't…
2
votes
2 answers

Telegram API - account.registerDevice webpush token problem: WEBPUSH_TOKEN_INVALID

I'm working with the Telegram API in my application and I need to handle updates. The last line of the Working with Updates documentation says that Telegram can send push notifications for updates. To subscribe to the push notifications, I need call…
hamed
  • 7,939
  • 15
  • 60
  • 114
2
votes
1 answer

Get all participants of a channel using WTelgramClient, only returning 200

I have a channel and i would like to remove some users. I have used code from WTelegramClient to get all the participants, but for some reason it is only returning 200? We have 31k members. Here is the code i am using to get participants, which is…
Gillardo
  • 9,518
  • 18
  • 73
  • 141
2
votes
1 answer

can I get the longitude and latitude of the location if the message sent is a location share message in telegram with TELETHON

I am scraping telegram and I could get every message instance with client.iter_messages in a chat but I want to get the latitude and longitude of the location if the message instance is a location share message. for message in…
Dr.Die_OXide
  • 300
  • 2
  • 18
1
2
3
15 16