mu-hun / commit-telegram-bot

:alarm_clock: Remind your commit and coding every day with Telegram bot!
MIT License
11 stars 0 forks source link

Working or not? #10

Open Svyatoslav2 opened 3 years ago

Svyatoslav2 commented 3 years ago

Is this really a working option? I did as you wrote, but your project doesn't work, is this all the code needed for this task?

mu-hun commented 3 years ago

Could you clone this repository to your local machine instead install module?

Probably the name with the dash was the problem. Python module name with dashes can't be import.

Then change import module name to commitTelegramBot in repository directory:

- from commit-telegram-bot import commitTelegramBot
+ from commitTelegramBot import CommitTelegramBot

telegram_id is not telegram username. find message.chat.id field using /getUpdates Telegram bot API:

- bot = CommitTelegramBot('github_token', 'github_username', 'telegram_token', 'telegram_id')
+ bot = CommitTelegramBot('github_token', 'github_username', 'telegram_token', 'chat_id')

If you are unfamiliar reading the Telegram API documentation, get this by chat with @get_id_bot

Thanks for report issue. 🙇🏻‍♂️

mu-hun commented 3 years ago

The source of the master branch only target to your own repositories commits.

If you want to find more contributions list (ex. opended issue/PR and commits from other user/origanization repositories.) switching branch to update-useage branch: