Skip to content

Fix: cast from_user to int in get_users() to avoid BOT_METHOD_INVALID - #107

Open
AlonikPlayz wants to merge 1 commit into
DreamXBotz:DreamXBotzfrom
AlonikPlayz:patch-4
Open

Fix: cast from_user to int in get_users() to avoid BOT_METHOD_INVALID#107
AlonikPlayz wants to merge 1 commit into
DreamXBotz:DreamXBotzfrom
AlonikPlayz:patch-4

Conversation

@AlonikPlayz

Copy link
Copy Markdown

BOT_METHOD_INVALID / ResolvePhone error, string ID treated as phone number by Pyrogram. this change to avoid this error:
[2026-08-21 10:01:24 AM] ERROR | plugins.pmfilter:pmfilter:1075 — get_users failed for 6682111015: Telegram says: [400 BOT_METHOD_INVALID] - The specified method cannot be used by bots. (caused by "contacts.ResolvePhone")
Instance is stopping.

BOT_METHOD_INVALID / ResolvePhone error, string ID treated as phone number by Pyrogram.
this change to avoid this error:
[2026-08-21 10:01:24 AM] ERROR    | plugins.pmfilter:pmfilter:1075 — get_users failed for 6682111015: Telegram says: [400 BOT_METHOD_INVALID] - The specified method cannot be used by bots. (caused by "contacts.ResolvePhone")
Instance is stopping.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant