szastupov / aiotg

Asynchronous Python library for building Telegram bots
MIT License
381 stars 44 forks source link

Process messages from channels #43

Closed derfenix closed 7 years ago

derfenix commented 7 years ago

Added handling and processing for messages from channels similar to normal chats.

szastupov commented 7 years ago

Hey! Thanks for PR. Unfortunately I just merged another PR and now your PR is conflicting 😅 Could you rebase it on fresh master and fix conflicts?

Also, maybe we should handle edited_channel_post as well?

Another nit: it looks like _process_channel_post can be refactored and somehow merged with _process_message but you can leave it as is, I can merge them later myself.

derfenix commented 7 years ago

Good idea. I wish I'll add edited_channel_post later, on next week. At this moment I see no nice way to merge _process_channel_post with _process_message. May be next time I'll make it. But I'm agree, it is better to use one method for both.