Create privKey using openssl genrsa 2048 > private.key, then use openssl rsa -in private.key -pubout to display pubKey, afterwards setup your pub key to bot, in @botfather using /setpublickey and send printed pubkey in format:
-----BEGIN PUBLIC KEY-----
YOUR PUBKEY
-----END PUBLIC KEY-----
Create privKey using
openssl genrsa 2048 > private.key, then useopenssl rsa -in private.key -puboutto display pubKey, afterwards setup your pub key to bot, in @botfather using/setpublickeyand send printed pubkey in format:You can read this docs for better understanding Passport auth: core.telegram.org/passport