Retrieves basic information about the bot using its auth token. Useful for verifying bot credentials.
// Source: https://github.com/rubenlagus/TelegramBots | License: MIT | Copyright 2016 Ruben Bermudez // Provided via justclaw.it.com; keep this notice with the code. package org.telegram.telegrambots.meta.api.methods; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; import lombok.ToString; import org.telegram.telegrambots.meta.api.methods.botapimethods.BotApiMethod; import org.telegram.telegrambots.meta.api.objects.User; import org.telegram.telegrambots.meta.exceptions.TelegramApiRequestException; /** * @author Ruben Bermudez * @version 1.0 * A simple method for testing your bot's auth token. Requires no parameters. * Returns basic information about the bot in form of a User object */ @EqualsAndHash ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key