Size: a a a

2020 November 20

p

potter📢 in aiogram [ru]
async def kick_chat_member(self, chat_id: typing.Union[base.Integer, base.String], user_id: base.Integer,
                              until_date: typing.Union[
                                  base.Integer, datetime.datetime, datetime.timedelta, None] = None) -> base.Boolean:
       """
       Use this method to kick a user from a group, a supergroup or a channel.
       In the case of supergroups and channels, the user will not be able to return to the group
       on their own using invite links, etc., unless unbanned first.

       The bot must be an administrator in the chat for this to work and must have the appropriate admin rights.

       Note: In regular groups (non-supergroups), this method will only work if the ‘All Members Are Admins’ setting
       is off in the target group.
       Otherwise members may only be removed by the group's creator or by the member that added them.

       Source: https://core.telegram.org/bots/api#kickchatmember

       :param chat_id: Unique identifier for the target group or username of the target supergroup or channel
       :type chat_id: :obj:`typing.Union[base.Integer, base.String]`
       :param user_id: Unique identifier of the target user
       :type user_id: :obj:`base.Integer`
       :param until_date: Date when the user will be unbanned, unix time
       :type until_date: :obj:`typing.Optional[base.Integer]`
       :return: Returns True on success
       :rtype: :obj:`base.Boolean`
       """
       until_date = prepare_arg(until_date)
       payload = generate_payload(**locals())

       result = await self.request(api.Methods.KICK_CHAT_MEMBER, payload)
       return result
источник

p

potter📢 in aiogram [ru]
это сам код\
источник

p

potter📢 in aiogram [ru]
а щас кину ссылку
источник

in aiogram [ru]
potter📢
async def kick_chat_member(self, chat_id: typing.Union[base.Integer, base.String], user_id: base.Integer,
                              until_date: typing.Union[
                                  base.Integer, datetime.datetime, datetime.timedelta, None] = None) -> base.Boolean:
       """
       Use this method to kick a user from a group, a supergroup or a channel.
       In the case of supergroups and channels, the user will not be able to return to the group
       on their own using invite links, etc., unless unbanned first.

       The bot must be an administrator in the chat for this to work and must have the appropriate admin rights.

       Note: In regular groups (non-supergroups), this method will only work if the ‘All Members Are Admins’ setting
       is off in the target group.
       Otherwise members may only be removed by the group's creator or by the member that added them.

       Source: https://core.telegram.org/bots/api#kickchatmember

       :param chat_id: Unique identifier for the target group or username of the target supergroup or channel
       :type chat_id: :obj:`typing.Union[base.Integer, base.String]`
       :param user_id: Unique identifier of the target user
       :type user_id: :obj:`base.Integer`
       :param until_date: Date when the user will be unbanned, unix time
       :type until_date: :obj:`typing.Optional[base.Integer]`
       :return: Returns True on success
       :rtype: :obj:`base.Boolean`
       """
       until_date = prepare_arg(until_date)
       payload = generate_payload(**locals())

       result = await self.request(api.Methods.KICK_CHAT_MEMBER, payload)
       return result
источник

p

potter📢 in aiogram [ru]
источник

p

potter📢 in aiogram [ru]
источник

p

potter📢 in aiogram [ru]
оно?
источник

in aiogram [ru]
А что ты сурсы кидаешь-то?
источник

in aiogram [ru]
Скинь код, который ты там у себя наваял. В нём ошибка
источник

p

potter📢 in aiogram [ru]
ща
источник

p

potter📢 in aiogram [ru]
Скинь код, который ты там у себя наваял. В нём ошибка
источник

in aiogram [ru]
источник

p

potter📢 in aiogram [ru]
еще не дописал, но решил для теста запустить
источник

in aiogram [ru]
Ты скопировал функцию из исходников бота
источник

in aiogram [ru]
Это не примеры
источник

pl

peach lasagna in aiogram [ru]
Телепатов уже вызвали?
на месте
источник

p

potter📢 in aiogram [ru]
Это не примеры
можешь тогда помочь с реализацией кика мебмеров определенных через бота?
источник

in aiogram [ru]
potter📢
можешь тогда помочь с реализацией кика мебмеров определенных через бота?
bot.kick_chat_member(chat_id, user_id, until_date)
источник

p

potter📢 in aiogram [ru]
bot.kick_chat_member(chat_id, user_id, until_date)
спасибо
источник

D

Dodje in aiogram [ru]
народ, хотел отправить файл через ID, ошибку дает
источник