Ejemplo n.º 1
0
    def channels_messages_list(self, channel, around=None, before=None, after=None, limit=50):
        r = self.http(Routes.CHANNELS_MESSAGES_LIST, dict(channel=channel), params=optional(
            around=around,
            before=before,
            after=after,
            limit=limit
        ))

        return Message.create_map(self.client, r.json())
Ejemplo n.º 2
0
 def channels_pins_list(self, channel):
     r = self.http(Routes.CHANNELS_PINS_LIST, dict(channel=channel))
     return Message.create_map(self.client, r.json())