hugshoney / barnaclebot

:robot: Telegram bot to help myself learn English while learning Go and vice versa.
Mozilla Public License 2.0
1 stars 0 forks source link

Improuve the README.md (token ?) #2

Closed slavi010 closed 4 years ago

slavi010 commented 4 years ago

I need a token telegram.error.InvalidToken: Invalid token. But for what is it ? Where i can get one ?

You can add a "instructions" section for your readme.

slavi010 commented 4 years ago

Ho, and the same time, add your python version.

hugshoney commented 4 years ago

First, you need to create Telegram Bot via BotFather. You will receive token for your own Telegram bot like this 110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw. Copy and paste in config.ini file.

For more information you can read this introduction by Telegram to create new bot.

hugshoney commented 4 years ago

I use Python 3. I will try to add little instruction in README.md

slavi010 commented 4 years ago

Nice, thanks !

slavi010 commented 4 years ago

I guess you need an Telegram account ?

hugshoney commented 4 years ago

Sure, you need Telegram account. How you can interact with Telegram bot without having any Telegram account.

slavi010 commented 4 years ago

Magic ?

hugshoney commented 4 years ago

There is no magic in here. You need Telegram accout :smile_cat:. Are you never use Telegram before?

slavi010 commented 4 years ago

No, I generally use Signal. So its going to be the first time i use it ^^

hugshoney commented 4 years ago

If you never use Telegram. Maybe you can try another project, like making bot for Discord, Slack, Reddit, WhatsApp (fyi, I never tried making all of this). The codes that I write in plugins folder can be use without using main.py, because I write those stuff as Python module.

hugshoney commented 4 years ago

I never use Signal but probably you can try to make Signal bot (if you don't want to make Telegram account).

Signal API Protocol

slavi010 commented 4 years ago

I tested the programme but i got this issue : caused error "'NoneType' object has no attribute 'reply_text'"

slavi010 commented 4 years ago

When i test /slang test. Same error for mean and synonym

hugshoney commented 4 years ago

Thats not happen to me :confused:. I'm not implement python try...except to handle error for this time, because the program is not completed yet.

slavi010 commented 4 years ago

Ho, it seems to work now. I don't know why but occasionally there is an error that occurs :/

slavi010 commented 4 years ago

image

hugshoney commented 4 years ago

I use all free public API to get any list of definition, synonym, slang, and quotes. Maybe there is limit of connection request to those API url, and will give None response (and make some error). Try to relaunch your bot.

hugshoney commented 4 years ago

Add Quick Start Guide to README.