Documentation
¶
Overview ¶
Package main demonstrates GoTG's automatic peer resolution.
GoTG resolves peers automatically in two ways:
Implicit resolution — pass a chatID to SendMessage/SendMedia and the framework resolves it to an InputPeer via a 3-tier lookup (cache → DB → RPC). You never construct InputPeer yourself.
Explicit resolution — call ResolvePeerToID with a human-readable identifier (@username, +phone, or numeric ID string) to get a chatID, then pass it to any send method.
This example shows both patterns.
Click to show internal directories.
Click to hide internal directories.