Работа с телеграм API: различия между версиями
Sergahell (обсуждение | вклад) |
Sergahell (обсуждение | вклад) |
||
Строка 5: | Строка 5: | ||
[[tg_deleteMessage|🔗 Удалить сообщение]] | [[tg_deleteMessage|🔗 Удалить сообщение]] | ||
− | + | Use this method to delete a message, including service messages, with the following limitations: | |
+ | - A message can only be deleted if it was sent less than 48 hours ago. | ||
+ | - Bots can delete outgoing messages in private chats, groups, and supergroups. | ||
+ | - Bots can delete incoming messages in private chats. | ||
+ | - Bots granted can_post_messages permissions can delete outgoing messages in channels. | ||
+ | - If the bot is an administrator of a group, it can delete any message there. | ||
+ | - If the bot has can_delete_messages permission in a supergroup or a channel, it can delete any message there. | ||
+ | Returns True on success. | ||
− | |||
− | |||
− | |||
== tg_editmessagecaption == | == tg_editmessagecaption == | ||
[[tg_editmessagecaption|🔗 Отредактировать заголовок]] | [[tg_editmessagecaption|🔗 Отредактировать заголовок]] | ||
+ | |||
+ | Use this method to edit captions of messages. On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned. | ||
== tg_editmessagemedia == | == tg_editmessagemedia == |
Версия 19:45, 26 июня 2019
🏠 Главная страница → 📖 Список функций → Работа с телеграм API
Содержание
- 1 tg_deleteMessage
- 2 tg_editmessagecaption
- 3 tg_editmessagemedia
- 4 tg_editmessagereplymarkup
- 5 tg_editmessagetext
- 6 tg_exportchatinvitelink
- 7 tg_forwardmessage
- 8 tg_getchat
- 9 tg_getchatadministrators
- 10 tg_getchatmember
- 11 tg_getchatmemberscount
- 12 tg_getMe
- 13 tg_kickchatmember
- 14 tg_leavechat
- 15 tg_pinchatmessage
- 16 tg_promotechatmember
- 17 tg_restrictchatmember
- 18 tg_sendanimation
- 19 tg_sendaudio
- 20 tg_sendaudiofile
- 21 tg_sendchataction
- 22 tg_sendcontact
- 23 tg_senddocument
- 24 tg_sendgame
- 25 tg_sendinvoice
- 26 tg_sendlocation
- 27 tg_sendmediagroup
- 28 tg_sendmessage
- 29 tg_sendphoto
- 30 tg_sendpoll
- 31 tg_sendsticker
- 32 tg_sendvenue
- 33 tg_sendvideo
- 34 tg_sendvideofile
- 35 tg_sendvoice
- 36 tg_setchatdescription
- 37 tg_stopPoll
- 38 tg_unbanchatmember
- 39 tg_unpinchatmessage
tg_deleteMessage
Use this method to delete a message, including service messages, with the following limitations: - A message can only be deleted if it was sent less than 48 hours ago. - Bots can delete outgoing messages in private chats, groups, and supergroups. - Bots can delete incoming messages in private chats. - Bots granted can_post_messages permissions can delete outgoing messages in channels. - If the bot is an administrator of a group, it can delete any message there. - If the bot has can_delete_messages permission in a supergroup or a channel, it can delete any message there. Returns True on success.
Use this method to edit captions of messages. On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.
tg_editmessagemedia
tg_editmessagereplymarkup
🔗 Отредактировать только кнопки
tg_editmessagetext
tg_exportchatinvitelink
tg_forwardmessage
tg_getchat
tg_getchatadministrators
🔗 Получить список администраторов
tg_getchatmember
tg_getchatmemberscount
🔗 Получить количество участников
tg_getMe
tg_kickchatmember
🔗 Выгнать пользователя из чата
tg_leavechat
tg_pinchatmessage
tg_promotechatmember
tg_restrictchatmember
tg_sendanimation
tg_sendaudio
tg_sendaudiofile
tg_sendchataction
🔗 Отправить фейковое сообщение