td icon indicating copy to clipboard operation
td copied to clipboard

doc: add examples for every feature

Open tdakkota opened this issue 4 years ago • 11 comments

For now, gotd have a lot badly documented features and helpers, like uploader package.

tdakkota avatar Feb 28 '21 14:02 tdakkota

The project would benefit greatly from an examples folder with different scenarios like big file upload or examples per package to be available in the module documentation.

paskal avatar Jul 11 '21 12:07 paskal

I've added documentation as current focus to roadmap.

Until then, feel free to ask questions in telegram groups, we have both English and Russian support channels. Also there are upload in cli, so you can see https://github.com/gotd/cli/blob/ecd58c4e716de86cf8c37520989a8bb3391fe783/cmd/tg/upload.go#L162-L170 for reference for uploads.

ernado avatar Jul 11 '21 12:07 ernado

We definitely need an example of: user login by code with session storage in file user reconnect with the previous session. user send message to a channel.

lilien1010 avatar Dec 16 '21 13:12 lilien1010

We definitely need an example of: user login by code with session storage in file user reconnect with the previous session. user send message to a channel.

Очень прошу пример с входом по коду и сохранением в сессию

Vponed avatar Jan 17 '22 02:01 Vponed

Please add example of ChannelsGetParticipants method usage

AlexanderMatveev avatar Jun 01 '22 22:06 AlexanderMatveev

Очень прошу пример с входом по коду и сохранением в сессию

Translate in English: "I want to ask for an example with entering by code and saving to the session"

suntong avatar Mar 13 '23 22:03 suntong

We definitely need an example of: user login by code with session storage in file user reconnect with the previous session. user send message to a channel.

Yes, and further than that,

  • reply to a picture / video message with key phrase like "save" and it'll save the refered picture / video.

suntong avatar Mar 13 '23 22:03 suntong

Is there any example how to add contact (phone number)?

Thanks

biji avatar Mar 20 '23 12:03 biji

Is there any example how to add contact (phone number)?

Don't do that -- it's a surefire invitation to get your account banned in lightning speed.

suntong avatar Mar 20 '23 13:03 suntong

Most of recipients already added server's phone in their contact. Recipients to be resolved , sender need to add contact first

biji avatar Mar 20 '23 14:03 biji

Any clue, how to get peer's phone number inside:

dispatcher.OnNewMessage(func(ctx context.Context, entities tg.Entities, update *tg.UpdateNewMessage)  

thanks

biji avatar Mar 27 '23 10:03 biji