A simple telegram bot to concatenate and split message content.
Production version: @MessageMergerBot
A simple bot to concatenate and split message content.
License: MIT License
A simple telegram bot to concatenate and split message content.
Production version: @MessageMergerBot
..add_handler(.., pass_chat_data=True)...
def handler(bot, update, chat_data: Dict): ....
Currently the merged messages don't preserve message entities. Please use ptb's markdown features for that.
message merging doesn't works when the texts forwarded have multiple new lines in them, need to fix this issue, code is at these lines:
Line 108 in 57a306f
Seems it also crashes for some combinations:
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"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.