Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Telegram Bot API 2.0 — что нового

Telegram Bot API 2.0 — что нового

Богдан Евстратенко @ MoscowPython 36

Moscow Python Meetup

June 28, 2016
Tweet

More Decks by Moscow Python Meetup

Other Decks in Programming

Transcript

  1. ТЕКСТ ▸ January 4, 2016 ▸ Inline Mode ▸ January

    20, 2016 ▸ HTML-style and markdown-style !!!!!!!! ▸ February 20, 2016 ▸ Добавили disable_notification ▸ Куча минорных фиксов
  2. АПРЕЛЬ 9, 2016 CHANGE LOG ▸ inline keyboards with callback

    and URL buttons ▸ методы: InlineKeyboardMarkup, InlineKeyboardButton, CallbackQuery, answerCallbackQuery ▸ поля: reply_markup в объект InlineQueryResult; callback_query в объект Update
  3. ТЕКСТ CALLBACK & URL BUTTONS ▸ В чат ничего не

    отправляется ▸ Бот просто получает релевантный query
  4. INLINE BOTS ДРУГИЕ НИТЯКИ И УПРОЩАЛКИ ЖИЗНИ ▸ 19 типов

    контента (кэш тоже) ▸ Тулзы админа: kickChatMember и unbanChatMember. ▸ Поля venue, pinned_message ▸ Объекты MessageEntity, Venue ▸ Методы sendVenue, sendLocation and sendContact
  5. ТЕКСТ SENDLOCATION Args:
 chat_id:
 Unique identifier for the message recipient

    - Chat id.
 latitude:
 Latitude of location.
 longitude:
 Longitude of location. SENDVENUE VS Args:
 chat_id:
 Unique identifier for the target chat or username of the target
 channel (in the format @channelusername).
 latitude:
 Latitude of the venue.
 longitude:
 Longitude of the venue.
 title:
 Name of the venue.
 address:
 Address of the venue.
 foursquare_id:
 Foursquare identifier of the venue
  6. ТЕКСТ НУЖНО БОЛЬШЕ КОНТРОЛЯ!!11! ▸ Больше административных тулзов ▸ getChat,

    leaveChat, getChatAdministrators, getChatMember, getChatMembersCount ▸ edited messages + new mentions???
  7. НЕМНОГО СЛОВ КТО ЭТО ТАКОЙ? ▸ Аналитическая система, основанная на

    Яндекс.Метрике ▸ Поддерживает кучу ЯП Go, Java, JavaScript , PHP , Python, Ruby, Rust, Haskell