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-----
from where do we get the public key
Read this post, please core.telegram.org/bots . It's enough to understand how to create telegram bots
I didn't find anywhere named public key, could you please share exactly where your referring to
Thank you
You are totally right. The article was translated and I don't remember where
publicKeyis from.I've corrected the post
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