How do I use an HTTP/Socks proxy?
Look at the wiki page: Working Behind a Proxy.
I got a '409' error. What do I do?
You are trying to receive updates multiple times at the same time. Either you are calling GetUpdates from two instances of the bot, or you are calling GetUpdates while a web hook is already set. That is not supported by the API, only receive on one instance.
How do I get the user id from a username?
There is no way to do that with the API directly. You could store a list of known usernames, mapped to ids. This is not recommended, because usernames can be changed.
How do I get updates in channels?
If you are using polling, you will have to subscribe to the
UpdateType of the
Update. If it is
UpdateType.ChannelPost then the
Update.ChannelPost property will be set.