Closed aahnik closed 3 years ago
Problem
Non-integer chat ids are not working for tgcf live mode
forwards: - source: aahnikdaw dest: [-1001198424910]
a configuration like this fails in live mode, although succeeds in past mode.
Probable reason
message handlers have something like this on top:
if chat_id not in from_to: return
the chat_id is not in from_to as, from_to is now having the string username or other type of things.
Probable solution
some conversion should take place, and comparison must be done for same type
related docs https://docs.telethon.dev/en/latest/concepts/entities.html
non int chat ids, work fine in the dest. This problem is only in the source
dest
source
It is safe to use usernames/liks/phn no etc v0.2.4 or above.
Problem
Non-integer chat ids are not working for tgcf live mode
a configuration like this fails in live mode, although succeeds in past mode.
Probable reason
message handlers have something like this on top:
the chat_id is not in from_to as, from_to is now having the string username or other type of things.
Probable solution
some conversion should take place, and comparison must be done for same type
related docs https://docs.telethon.dev/en/latest/concepts/entities.html