| Constructor and Description |
|---|
TelegramImpl(org.springframework.web.client.RestTemplate restTemplate,
TelegramProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
Chat |
getChat(long chatId) |
Chat |
getChat(String token,
long chatId) |
ChatMember |
getChatMember(long chatId,
long userId) |
ChatMember |
getChatMember(String token,
long chatId,
long userId) |
UserProfilePhotos |
getUserProfilePhotos(long userId) |
UserProfilePhotos |
getUserProfilePhotos(String token,
long userId) |
void |
registerBot(String token) |
Boolean |
setWebHook(String token,
WebHook webHook) |
public TelegramImpl(org.springframework.web.client.RestTemplate restTemplate,
TelegramProperties properties)
public Boolean setWebHook(String token, WebHook webHook)
setWebHook in interface Telegrampublic void registerBot(String token)
registerBot in interface Telegrampublic UserProfilePhotos getUserProfilePhotos(long userId)
getUserProfilePhotos in interface Telegrampublic UserProfilePhotos getUserProfilePhotos(String token, long userId)
getUserProfilePhotos in interface Telegrampublic ChatMember getChatMember(long chatId, long userId)
getChatMember in interface Telegrampublic ChatMember getChatMember(String token, long chatId, long userId)
getChatMember in interface TelegramCopyright © 2018. All rights reserved.