windkh / node-red-contrib-telegrambot

Telegram bot nodes for node-red.
Other
262 stars 116 forks source link

change bottoken to apiid and api hash #206

Closed cr0co closed 3 years ago

cr0co commented 3 years ago

Hello

i need to change the bot token to the api id and api hash from https://my.telegram.org/apps so it sends it as a user.

is that possible ?

Greetings

windkh commented 3 years ago

Sorry but I did not understand what you want to know. Please explain it a little bit better

cr0co commented 3 years ago

i need to send it as "me" so i use the api id and api hash from the apps page.

windkh commented 3 years ago

Like https://telegram.me/BotFather that one?

cr0co commented 3 years ago

nono that creates a Bot account.

go to https://my.telegram.org/apps then you see it

windkh commented 3 years ago

No idea. It seems that you can create your own client apps. But I can not see how this is related to the bot API.

cr0co commented 3 years ago

you can use the bot api with this data. then it sends messages with your phone number instead a bot.

windkh commented 3 years ago

Hm is there a documentation for that?

cr0co commented 3 years ago

i use telethon directly on python, maybe you found something there. i use client = TelegramClient(phone, api_id, api_hash) to connect phone = phone number

if you loggin like that, you recieve a number in telegram to confirm

windkh commented 3 years ago

But why do you not want to use a bot token? The outcome would be the same using an app id or?

cr0co commented 3 years ago

i want to send messages as my account not as a bot

windkh commented 3 years ago

Hm I guess that the client api is different to the bot api. Right now I do not see a way on how to achieve that. Sorry.