niksart / cembot

Collective Expenses Management bot. Telegram bot that administrates finances between groups and/or people.
MIT License
1 stars 0 forks source link

Have a way to translate an @username to an user id #1

Closed fgaz closed 6 years ago

fgaz commented 6 years ago

Commands will mostly be used as /command @user, and not /command <obscure numeric user id>, so we'll have to translate the @-username (if it begins with a @ in the first place) to an user id

niksart commented 6 years ago

No official way for doing this. This is a resolutor in nodejs but... it takes a long time https://github.com/yagop/node-telegram-bot-api/issues/383

niksart commented 6 years ago

See https://github.com/niksart/cembot/commit/d0c8775b5b74a97c4ee35caf7b0957827df27ac7