How to download message as bot?
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 34
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
I used ./tg init --token my-bot-token. Then I tryied to ./tg download chatid msgid and got
tg: callback: not authorized: run `tg login` first
while ./tg download --bot chatid msgid says:
tg: unknown flag: --bot
If I do ./tg login first, the download command (without --bot), gives:
tg: callback: resolve peer "XXXX": contact not found
I assume this is because it is trying to dowload it as the logged user, not the bot.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the commands shown: ./tg init --token, ./tg download, ./tg download --bot, and ./tg login. Trace the CLI entry points for authentication, peer resolution, and download handling to determine whether bot downloads are supported; done means the supported bot workflow is clear and the command no longer incorrectly requires user login or reports an unavailable option.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100