You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The telegram bot api, in each update, includes a message structure, we are interested in the entities section, in particular to the entities of type url and hashtag, the entities structure offers only the offset of entities, in the full text message.
So we should, take the original message, check for the entities, recover the full entities in the message text and create another data structure with only the relevant field and entities of the message.
We should pass the entity to the "validator", in order to check for valid links, as described in #1
The
telegram
bot api, in each update, includes a message structure, we are interested in the entities section, in particular to the entities of typeurl
andhashtag
, the entities structure offers only the offset of entities, in the full text message.So we should, take the original message, check for the entities, recover the full entities in the message text and create another data structure with only the relevant field and entities of the message.
We should pass the entity to the "validator", in order to check for valid links, as described in #1
Example
We can use
telegraf
as bot framework, but we will have the same message data structureThe text was updated successfully, but these errors were encountered: