Package 

Class ContactSender

  • All Implemented Interfaces:
    be.rlab.tehanu.clients.telegram.MessageSender

    
    public final class ContactSender
     implements MessageSender
                        

    Sends a contact from the address book.

    • Constructor Summary

      Constructors 
      Constructor Description
      ContactSender(Bot bot)
    • Method Summary

      Modifier and Type Method Description
      Boolean supports(OutboundMessage outboundMessage) Checks if this sender supports sending the specific outbound message.
      Message edit(Long chatId, Long messageId, OutboundMessage outboundMessage) Edits an existing message.
      List<Message> send(Long chatId, OutboundMessage outboundMessage) Sends a message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ContactSender

        ContactSender(Bot bot)
        Parameters:
        bot - Bot that sends the message.
    • Method Detail

      • supports

         Boolean supports(OutboundMessage outboundMessage)

        Checks if this sender supports sending the specific outbound message.

        Parameters:
        outboundMessage - Message to verify.
      • edit

         Message edit(Long chatId, Long messageId, OutboundMessage outboundMessage)

        Edits an existing message.

        Parameters:
        chatId - Id of the chat to send the message to.
        messageId - Id of the message to edit.
        outboundMessage - Message to send.
      • send

         List<Message> send(Long chatId, OutboundMessage outboundMessage)

        Sends a message.

        Parameters:
        chatId - Id of the chat to send the message to.
        outboundMessage - Message to send.