td
td copied to clipboard
doc: add examples for every feature
For now, gotd have a lot badly documented features and helpers, like uploader package.
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.
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.
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.
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.
Очень прошу пример с входом по коду и сохранением в сессию
Please add example of ChannelsGetParticipants method usage
Очень прошу пример с входом по коду и сохранением в сессию
Translate in English: "I want to ask for an example with entering by code and saving to the session"
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.
Is there any example how to add contact (phone number)?
Thanks
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.
Most of recipients already added server's phone in their contact. Recipients to be resolved , sender need to add contact first
Any clue, how to get peer's phone number inside:
dispatcher.OnNewMessage(func(ctx context.Context, entities tg.Entities, update *tg.UpdateNewMessage)
thanks