GithubHelp home page GithubHelp logo

Comments (4)

wiz0u avatar wiz0u commented on June 9, 2024

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.

Arcanum7 avatar Arcanum7 commented on June 9, 2024

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.

wiz0u avatar wiz0u commented on June 9, 2024

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.

wiz0u avatar wiz0u commented on June 9, 2024

Please read or search the documentation before asking a question.

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.