Comments (4)
This library use binary structures/classes, not JSON, for better performance with the underlying binary protocol/connection MTProto.
For some reason (logs? dump?), if you really need a JSON version of those structures, you can serialize them like this:
string json = JsonSerializer.Serialize(update, WTelegram.Helpers.JsonOptions);
from wtelegramclient.
For some reason (logs? dump?)
if i do this:
var channels = await _client.Messages_GetAllChats();
var channel = (Channel)channels.chats[chid];
var chmsg = await _client.Channels_GetMessages(channel, _in);
richTextBox_exp.AppendText($"{chmsg.Messages[0]}");
with msg with media or/and markdown then i'll get somthing like this:
2037247235> text with picture TL.MessageMediaPhoto
what to do to get only text without "2037247235>" ?
what to do to get text with markdown opening and close tags OR get text with formating and show it in richtextbox as is?
from wtelegramclient.
GitHub Issues should be used only for signaling bugs in the library code itself.
For questions about Telegram API usage, you can search the API official documentation
or click here to ask your question on StackOverflow so the whole community can help and benefit.
For other programming questions or support, you may ask on Telegram groups: here, here or here.
from wtelegramclient.
Please read or search the documentation before asking a question.
- The ReadMe (essential! must read!)
- Many examples, lots of useful snippets of code
- Frequently asked questions
The answer to your problem is likely already in those pages !
Also note that Github Issues are reserved for signaling bugs in the library code itself.
General questions can be asked in our Telegram support group: @WTelegramClient
from wtelegramclient.
Related Issues (20)
- MTPROTO_CLUSTER_INVALID exception HOT 1
- Client.User field is not updated during the session, can be harmful HOT 2
- Logout Active Session : Account_GetAuthorizations return 0 hash for active session HOT 4
- Unable to cast object of type 'TL.UserEmpty' to type 'TL.User'. HOT 3
- Interrupted login (resumed/asynchronous) HOT 5
- The method address is different HOT 3
- Cannot find type for ctor #38116ee0 HOT 2
- Stack overflow on poison message HOT 5
- QR Support HOT 6
- Session serialization error HOT 2
- Getting Message History with min_id HOT 2
- Contact for specific questions ? HOT 1
- Issue using Stream for saving session HOT 5
- Some properties are only private HOT 1
- Object of type 'TL.PeerChannel' cannot be converted to type 'TL.MessageFwdHeader'. HOT 3
- I always get updateDeleteMessages. HOT 2
- An exception occured in the reactor: WTelegram.WTException: Cannot find type for ctor #whatever after upgrading to v4.x HOT 4
- contacts.getLocated HOT 1
- how to get data for miniapp? HOT 1
- voip support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wtelegramclient.