Coder Social home page Coder Social logo

messagemerger's Introduction

Message Merger

A simple telegram bot to concatenate and split message content.

Production version: @MessageMergerBot

messagemerger's People

Contributors

lulzx avatar

Stargazers

 avatar jist avatar Aahnik Daw avatar  avatar  avatar  avatar Dunkan avatar Ekamjeet Singh avatar  avatar M.Furkan avatar

Watchers

James Cloos avatar Joscha Götzer avatar  avatar

messagemerger's Issues

Support markdown

Currently the merged messages don't preserve message entities. Please use ptb's markdown features for that.

[Bug] Message entities are escaped when they shouldn't be

image

Seems it also crashes for some combinations:
image

Stack Trace (for 2nd screenshot):

2020-10-07T17:17:58.961832157Z [W 201007 17:17:58 main:188] Update "{'update_id': 897552692, 'message': {'message_id': 9797, 'date': 1602091078, 'chat': {'id': 62056065, 'type': 'private', 'username': 'JosXa', 'first_name': 'JosXa'}, 'text': '/done', 'entities': [{'type': 'bot_command', 'offset': 0, 'length': 5}], 'caption_entities': [], 'photo': [], 'new_chat_members': [], 'new_chat_photo': [], 'delete_chat_photo': False, 'group_chat_created': False, 'supergroup_chat_created': False, 'channel_chat_created': False, 'from': {'id': 62056065, 'first_name': 'JosXa', 'is_bot': False, 'username': 'JosXa', 'language_code': 'en'}}}" caused error "Can't parse entities: can't find end of the entity starting at byte offset 18"

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.