gotd / gotd/cli

How to download message as bot?

Open
#266 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.