Web appOpen in Telegram
WWTelegramClient

WTelegramClient

@WTelegramClient · group · Tech · indexed since 2026-05-20
753members
5writing in 30 days
21messages in 30 days
39 856messages in the index
W
state is used to reconcile missed messages. no state means new messages in chat will be transmitted to OnUpdate without trying to recover prior messages
W
if you need to fetch all initial/past history from a chat, don't base that logic on state but rather calling getHistory
W
To fetch all the messages (history) from a chat/channel, you can look at this example
W
🤖 WTelegramBot 10.3 now on Patreon: Bot API 10.3: 🔁 Button Revolution in rich messages, disabled buttons 👻 Ephemeral Messages with rich content 💪 Rich Messages with documents, expandable blocks, compact tables... 🦀 AI Agents with Stop button for streamed drafts Docs | Upgrade | Donate 💛 Help these open-source projects by sponsoring me Latest versions are exclusively available to Patreons, and will appear on GitHub/Nuget only several weeks later 👉 support this open-source library, subscribe an early-access membership on Patreon
1 · 154 ·
W
You like this library? Donations to author can be made through: • Patreon — GitHub Sponsors — PayPal — Buy Me A Coffee • or cryptocurrencies: USDT / TRC20: TYWETYwa7cfsVvpHG9GRN4uHTav3BBkM8A Bitcoin: bc1qg9s5hf7sn0x8nvcewe6a28m8f2e0q4lph979wl Ethereum: 0x8901CfD341958846fD90cD98AB3A96C026eD50c5 TON: UQCW2PZuHz2nXd779ZjOqPDhgeVHJcOIOaJrFbASCSwVtP6h I receive very few donations, thank you for helping the project 💜
W
Link
click to show
WTB Github issue #31 opened by Puxxalwl: Quote is not defined in ReplyToMessage.Quote
X
Hi, I didn't think this was worth opening an issue so I'm saying it here instead in the examples, there is an example for uploading a video, it states that it depends on FFMpegCore lib, however it actually depends on Xabe.FFmpeg
  1. W
    indeed, thanks (i don't even remember writing this example 😅)
Whole thread · 1 reply →
X
is there an easy way to upload a file using a bot, and when trying to send it again, check if it exists on the server and don't reupload it?
  1. W
    Save the file_id after uploading so you can reuse it the next time.
Whole thread · 1 reply →
W
Your question was about bot api, right?
  1. X
    Yes, thanks for your response I found it, I was using the underlying client for most of my work since I needed the least amount of extra calls for fastest response times possible, but for this one I read the code for converting TL document to the base64 FileId and decided that I don't need that much performance for sending a help video xD I am still wondering one thing tho, what is returned from the sendvideo call if the file has been removed from the tg servers P.S. Figured it out, RpcError 400 MEDIA_EMPTY
Whole thread · 1 reply →
G
Your question seems to be about Telegram Bot API, rather than WTelegramBot specifics or WTelegramClient You should probably join Telegram.Bot support group and ask your question there. People will likely answer you there.
X
Hi there, After the following log the bot went down, can anyone help me figure out why and how to prevent this or at least how to restart it when this happens? Thanks in advance Trying to apply 1 pending updates after filled gaps ( -2, +1->0 ) TL.UpdateMessageID applied ( 0, 1384+1->1385 ) TL.UpdateNewMessage applied | msgID=1118 Trying to apply 1 pending updates after filled gaps 4>Sending MsgContainer 2026-09-26 21:47:26Z (svc) → MsgsAck → Messages_EditMessage #823E 4>Receiving RpcResult 2026-09-26 21:47:26Z → Updates #823E ( 0, 1385+1->1386 ) TL.UpdateEditMessage applied | msgID=1114 Trying to apply 1 pending updates after filled gaps ( 0, 1385+1->1386 ) TL.UpdateEditMessage applied | msgID=1114 Trying to apply 1 pending updates after filled gaps Trying to recover gaps for 1 pending updates Trying to recover gaps for 1 pending updates (4451670598, new +1->4 ) TL.UpdateNewChannelMessage First appearance of MBox | msgID=3 (4451670598, new +1->4 ) TL.UpdateNewChannelMessage First appearance of MBox | msgID=3 Trying to apply 1 pending updates after filled gaps (4451670598, 3+1->4 ) TL.UpdateNewChannelMessage applied now | msgID=3 Trying to apply 1 pending updates after filled gaps (4451670598, 3+1->4 ) TL.UpdateNewChannelMessage applied now | msgID=3 4>Sending MsgContainer 2026-09-26 21:47:50Z (svc) → MsgsAck → PingDelayDisconnect #E42E
W
you can use client.OnOther to monitor Pong objects if no Pong has been received for a few minutes, try to disconnect/reconnect the network or restart a new client instance
W
⚙️ #Prerelease WTelegramBot version 10.3.0-dev.3 on Nuget: Fill msg.Quote even if msg.ReplyToMessage isn't filled (fix #31)
W
⚙️ #Prerelease WTelegramBot version 10.3.0-dev.4 on Nuget: BotApiServer: added Webhook support

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog · Search · How we count